Fix browser error logging in test/test.js
If a browser cannot be started, we currently get the following log: `Error while starting firefox: [object Object]`. This is simply an oversight from the initial Puppeteer integration work since we never got into this code path before. With this fix the error log becomes more useful: `Error while starting firefox: connect ECONNREFUSED ::1:45387`
This commit is contained in:
parent
c14552874b
commit
5309133a9d
@ -975,7 +975,7 @@ function startBrowsers(initSessionCallback, makeStartUrl = null) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(function (ex) {
|
.catch(function (ex) {
|
||||||
console.log(`Error while starting ${browserName}: ${ex}`);
|
console.log(`Error while starting ${browserName}: ${ex.message}`);
|
||||||
closeSession(browserName);
|
closeSession(browserName);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user