mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 06:07:57 +00:00
Log an error if failing to stop a tty session
This commit is contained in:
parent
a9672bd5af
commit
70eef70be2
@ -46,7 +46,9 @@ exports.kill = kill = (app) ->
|
||||
container = docker.getContainer(app.containerId)
|
||||
console.log('Stopping and deleting container:', container)
|
||||
tty.stop()
|
||||
.catch(->) # Even if stopping the tty fails we want to finish stopping the container
|
||||
.catch (err) ->
|
||||
console.error('Error stopping tty', err)
|
||||
return # Even if stopping the tty fails we want to finish stopping the container
|
||||
.then ->
|
||||
container.stopAsync()
|
||||
.then ->
|
||||
|
Loading…
Reference in New Issue
Block a user