mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 00:03:28 +02:00
Remove unused errors and make STF error codes match Android error codes better.
This commit is contained in:
@@ -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')
|
||||
])
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user