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

Remove unused errors and make STF error codes match Android error codes better.

This commit is contained in:
Simo Kinnunen 2014-09-05 14:00:51 +09:00
parent 254994ce3b
commit 77261ffd43
2 changed files with 6 additions and 12 deletions

View file

@ -161,14 +161,14 @@ module.exports = syrup.serial()
.then(function() {
push.send([
channel
, reply.okay('success')
, reply.okay('INSTALL_SUCCEEDED')
])
})
.catch(Promise.TimeoutError, function(err) {
log.error('Installation of package "%s" failed', pkg, err.stack)
push.send([
channel
, reply.fail('timeout')
, reply.fail('INSTALL_ERROR_TIMEOUT')
])
})
.catch(InstallationError, function(err) {
@ -186,7 +186,7 @@ module.exports = syrup.serial()
log.error('Installation of package "%s" failed', pkg, err.stack)
push.send([
channel
, reply.fail('fail')
, reply.fail('INSTALL_ERROR_UNKNOWN')
])
})
})