We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96c21ef commit c10f1e4Copy full SHA for c10f1e4
app/services/karma-host-resolver.ts
@@ -7,19 +7,22 @@ export class KarmaHostResolver implements IKarmaHostResolver {
7
8
const resolvers = ips.map(ip => {
9
const karmaClientUrl = `http://${ip}:${port}/context.json`;
10
- console.log('NSUTR: fetching ' + karmaClientUrl);
+ console.log(`NSUTR: fetching ${karmaClientUrl}`);
11
12
return this.http.getString({
13
url: karmaClientUrl,
14
method: 'GET',
15
timeout: 3000,
16
}).then(() => {
17
- console.log('NSUTR: found karma at ' + ip);
+ console.log(`NSUTR: found karma at ${ip}`);
18
if (!foundKarma) {
19
foundKarma = true;
20
resolve(ip);
21
}
22
- }, () => undefined)
+ }, (err) => {
23
+ console.log(`NSUTR: error fetching ${karmaClientUrl}`, err);
24
+ return undefined;
25
+ })
26
});
27
28
Promise.all(resolvers)
0 commit comments