diff options
| author | Paul Bütow <pbuetow@mimecast.com> | 2020-02-12 22:46:45 +0000 |
|---|---|---|
| committer | Paul Bütow <pbuetow@mimecast.com> | 2020-02-12 22:46:45 +0000 |
| commit | 221010919b210034ba75d42951caf3965f66aa9d (patch) | |
| tree | 40fa9530ff3c2b1137ed9a490e23a51dff907423 /internal/clients/handlers | |
| parent | a1a0990f5e261f395a2d699cd7602ca4a6a5b6c4 (diff) | |
exec will always err if status is > 0
Diffstat (limited to 'internal/clients/handlers')
| -rw-r--r-- | internal/clients/handlers/basehandler.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/clients/handlers/basehandler.go b/internal/clients/handlers/basehandler.go index 68b8ddc..7b071c9 100644 --- a/internal/clients/handlers/basehandler.go +++ b/internal/clients/handlers/basehandler.go @@ -122,7 +122,9 @@ func (h *baseHandler) handleHiddenMessage(message string) { logger.Error("Unable to retrieve exitstatus", message, err) return } - h.status = i logger.Debug("Retrieved exitstatus", h.status) + if i > h.status { + h.status = i + } } } |
