1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

Be more explicit about browser errors.

This commit is contained in:
Simo Kinnunen 2014-09-02 13:58:21 +09:00
parent 404e947f44
commit fce65099fb

View file

@ -91,7 +91,17 @@ module.exports = syrup.serial()
])
})
.catch(function(err) {
log.error('Browser could not be opened', err.stack)
if (message.browser) {
log.error(
'Failed to open "%s" in "%s"'
, message.url
, message.browser
, err.stack
)
}
else {
log.error('Failed to open "%s"', message.url, err.stack)
}
push.send([
channel
, reply.fail()
@ -110,7 +120,7 @@ module.exports = syrup.serial()
])
})
.catch(function(err) {
log.error('Browser could not be cleared', err.stack)
log.error('Failed to clear "%s"', message.browser, err.stack)
push.send([
channel
, reply.fail()