aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.go b/main.go
index c1aee941..7896a199 100644
--- a/main.go
+++ b/main.go
@@ -334,7 +334,7 @@ func runApp(config *fst.Config) {
fmsg.PrintBaseError(err, "cannot seal app:")
internal.Exit(1)
} else if err = a.Run(ctx, rs); err != nil {
- if !rs.Start {
+ if rs.Time == nil {
fmsg.PrintBaseError(err, "cannot start app:")
} else {
logWaitError(err)
@@ -344,6 +344,12 @@ func runApp(config *fst.Config) {
rs.ExitCode = 126
}
}
+ if rs.RevertErr != nil {
+ fmsg.PrintBaseError(rs.RevertErr, "generic error returned during cleanup:")
+ if rs.ExitCode == 0 {
+ rs.ExitCode = 128
+ }
+ }
if rs.WaitErr != nil {
log.Println("inner wait failed:", rs.WaitErr)
}