mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Fix error-catch problem and some refactoring.
This commit is contained in:
@@ -49,7 +49,7 @@ module.exports = syrup.serial()
|
||||
, reply.okay()
|
||||
])
|
||||
})
|
||||
.error(function(err) {
|
||||
.catch(function(err) {
|
||||
log.error('Account removal failed', err.stack)
|
||||
push.send([
|
||||
channel
|
||||
@@ -71,7 +71,7 @@ module.exports = syrup.serial()
|
||||
, reply.okay()
|
||||
])
|
||||
})
|
||||
.error(function(err) {
|
||||
.catch(function(err) {
|
||||
log.error('Add account menu failed', err.stack)
|
||||
push.send([
|
||||
channel
|
||||
|
||||
Reference in New Issue
Block a user