mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:53:23 +02:00
Be more explicit about browser errors.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user