run must output message on container error

This commit is contained in:
Fabiano Franz
2017-07-06 23:46:22 -03:00
parent a9bf44101b
commit f623b9b42f
3 changed files with 3 additions and 4 deletions

View File

@@ -167,8 +167,7 @@ func checkErr(err error, handleErr func(string, int)) {
case utilerrors.Aggregate:
handleErr(MultipleErrors(``, err.Errors()), DefaultErrorExitCode)
case utilexec.ExitError:
// do not print anything, only terminate with given error
handleErr("", err.ExitStatus())
handleErr(err.Error(), err.ExitStatus())
default: // for any other error type
msg, ok := StandardErrorMessage(err)
if !ok {