mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
pass the proper error message
This commit is contained in:
parent
3810a394c9
commit
378913862f
@ -36,7 +36,7 @@ api.post '/v1/spawn-tty', (req, res) ->
|
||||
.then (url) ->
|
||||
res.send(200, url)
|
||||
.catch (err) ->
|
||||
res.send(404, err)
|
||||
res.send(503, err?.message or err or 'Unknown error')
|
||||
|
||||
api.post '/v1/despawn-tty', (req, res) ->
|
||||
appId = req.body.appId
|
||||
|
Loading…
Reference in New Issue
Block a user