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:
parent
90b39306a8
commit
7f74ecd7af
8 changed files with 32 additions and 128 deletions
|
@ -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')
|
||||
])
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue