mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Be more explicit about browser errors.
This commit is contained in:
parent
404e947f44
commit
fce65099fb
1 changed files with 12 additions and 2 deletions
|
@ -91,7 +91,17 @@ module.exports = syrup.serial()
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
.catch(function(err) {
|
.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([
|
push.send([
|
||||||
channel
|
channel
|
||||||
, reply.fail()
|
, reply.fail()
|
||||||
|
@ -110,7 +120,7 @@ module.exports = syrup.serial()
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
.catch(function(err) {
|
.catch(function(err) {
|
||||||
log.error('Browser could not be cleared', err.stack)
|
log.error('Failed to clear "%s"', message.browser, err.stack)
|
||||||
push.send([
|
push.send([
|
||||||
channel
|
channel
|
||||||
, reply.fail()
|
, reply.fail()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue