environment(docker): improve logging and stacks

This commit is contained in:
Matthew Penner
2023-01-17 11:47:27 -07:00
parent e74d8e3501
commit 9b8b3c90fb
6 changed files with 12 additions and 9 deletions

View File

@@ -161,7 +161,7 @@ func (e *Environment) ExitState() (uint32, bool, error) {
if client.IsErrNotFound(err) {
return 1, false, nil
}
return 0, false, err
return 0, false, errors.WrapIf(err, "environment/docker: failed to inspect container")
}
return uint32(c.State.ExitCode), c.State.OOMKilled, nil
}