diff --git a/cmd/run.go b/cmd/run.go index f921fca483f5..ae60f900b843 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -283,11 +283,8 @@ a commandline interface for interacting with it.`, if common.IsInterruptError(err) { interrupt = err } - if !conf.Linger.Bool { - if interrupt == nil { - return errext.WithExitCodeIfNone(err, exitcodes.GenericEngine) - } - return errext.WithExitCodeIfNone(interrupt, exitcodes.ScriptException) + if !conf.Linger.Bool && interrupt == nil { + return errext.WithExitCodeIfNone(err, exitcodes.GenericEngine) } } runCancel()