aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 237574a2..408f23e1 100644
--- a/main.go
+++ b/main.go
@@ -289,10 +289,10 @@ func runApp(config *fst.Config) {
rs := new(fst.RunState)
if sa, err := a.Seal(config); err != nil {
fmsg.PrintBaseError(err, "cannot seal app:")
- rs.ExitCode = 1
+ internal.Exit(1)
} else {
- // this updates ExitCode
- app.PrintRunStateErr(rs, sa.Run(rs))
+ internal.Exit(app.PrintRunStateErr(rs, sa.Run(rs)))
}
- internal.Exit(rs.ExitCode)
+
+ *(*int)(nil) = 0 // not reached
}