File tree 3 files changed +12
-3
lines changed
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) {
17
17
for ( let modulePath of modules ) {
18
18
let module = require ( modulePath ) ;
19
19
20
- if ( module && module . default && module . default . proto ) {
21
- let defaultProto = module . default . proto ( ) ;
20
+ try {
21
+ let module = require ( modulePath ) ;
22
22
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
24
31
}
25
32
}
26
33
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