File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,22 @@ export class KarmaHostResolver implements IKarmaHostResolver {
77
88 const resolvers = ips . map ( ip => {
99 const karmaClientUrl = `http://${ ip } :${ port } /context.json` ;
10- console . log ( ' NSUTR: fetching ' + karmaClientUrl ) ;
10+ console . log ( ` NSUTR: fetching ${ karmaClientUrl } ` ) ;
1111
1212 return this . http . getString ( {
1313 url : karmaClientUrl ,
1414 method : 'GET' ,
1515 timeout : 3000 ,
1616 } ) . then ( ( ) => {
17- console . log ( ' NSUTR: found karma at ' + ip ) ;
17+ console . log ( ` NSUTR: found karma at ${ ip } ` ) ;
1818 if ( ! foundKarma ) {
1919 foundKarma = true ;
2020 resolve ( ip ) ;
2121 }
22- } , ( ) => undefined )
22+ } , ( err ) => {
23+ console . log ( `NSUTR: error fetching ${ karmaClientUrl } ` , err ) ;
24+ return undefined ;
25+ } )
2326 } ) ;
2427
2528 Promise . all ( resolvers )
You can’t perform that action at this time.
0 commit comments