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

Use wireutil.reply() where possible.

This commit is contained in:
Simo Kinnunen 2014-04-11 14:54:19 +09:00
parent 90b39306a8
commit 7f74ecd7af
8 changed files with 32 additions and 128 deletions

View file

@ -474,16 +474,12 @@ module.exports = function(options) {
}
})
.catch(function(err) {
var reply = wireutil.reply('storage')
log.error('Storage upload had an error', err.stack)
leaveChannel(responseChannel)
push.send([
channel
, wireutil.envelope(new wire.TransactionDoneMessage(
'storage'
, 0
, false
, 'fail'
))
, reply.fail('fail')
])
})
})