mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 15:56:40 +00:00
pass the error message in despawn as well
This commit is contained in:
parent
378913862f
commit
31a48c75f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user