Fix error-catch problem and some refactoring.

This commit is contained in:
Valverde Antonio
2014-07-30 16:45:17 +09:00
parent 4a6d375adc
commit daa1faaa29
5 changed files with 24 additions and 24 deletions

View File

@@ -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