mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-30 16:14:11 +00:00
Stop displaying an error message when trying to start a container that is already started.
This commit is contained in:
parent
a959660f90
commit
e56d9b678e
@ -1,3 +1,4 @@
|
|||||||
|
* Stopped displaying an error message when trying to start a container that is already started.
|
||||||
* Improved error messages reported to the user in the case of finding an empty string.
|
* Improved error messages reported to the user in the case of finding an empty string.
|
||||||
* Switched to using the dockerode pull progress mechanism.
|
* Switched to using the dockerode pull progress mechanism.
|
||||||
* Fixed trying to delete supervisor container when it reports an alternate tag instead of the primary tag.
|
* Fixed trying to delete supervisor container when it reports an alternate tag instead of the primary tag.
|
||||||
|
@ -211,6 +211,10 @@ exports.start = start = (app) ->
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
.catch (err) ->
|
.catch (err) ->
|
||||||
|
statusCode = '' + err.cause?.statusCode
|
||||||
|
# 304 means the container was already started, precisely what we want :)
|
||||||
|
if statusCode is '304'
|
||||||
|
return
|
||||||
logSystemEvent(logTypes.startAppError, app, err)
|
logSystemEvent(logTypes.startAppError, app, err)
|
||||||
throw err
|
throw err
|
||||||
.then ->
|
.then ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user