pass the error message in despawn as well

This commit is contained in:
Eugene Mirotin 2014-09-18 11:25:18 +01:00 committed by Pablo Carranza Vélez
parent 378913862f
commit 31a48c75f5

View File

@ -47,6 +47,6 @@ api.post '/v1/despawn-tty', (req, res) ->
.then ->
res.send(200)
.catch (err) ->
res.send(404, err)
res.send(503, err?.message or err or 'Unknown error')
module.exports = api