File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,17 @@ module.exports = async function gatherTelemetry(url) {
1717 for ( let modulePath of modules ) {
1818 let module = require ( modulePath ) ;
1919
20- if ( module && module . default && module . default . proto ) {
21- let defaultProto = module . default . proto ( ) ;
20+ try {
21+ let module = require ( modulePath ) ;
2222
23- telemetry [ modulePath ] = parseMeta ( Ember . meta ( defaultProto ) ) ;
23+ if ( module && module . default && module . default . proto ) {
24+ let defaultProto = module . default . proto ( ) ;
25+
26+ telemetry [ modulePath ] = parseMeta ( Ember . meta ( defaultProto ) ) ;
27+ }
28+ } catch ( error ) {
29+ // log the error, but continue
30+ console . error ( `error evaluating \`${ modulePath } \`: ${ error . message } ` ) ; // eslint-disable-line no-console
2431 }
2532 }
2633
Original file line number Diff line number Diff line change 1+ throw new Error ( 'This should not fail the telemetry gathering!' ) ;
Original file line number Diff line number Diff line change 1+ throw new Error ( 'This should not fail the telemetry gathering!' ) ;
You can’t perform that action at this time.
0 commit comments