diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-27 23:18:16 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-27 23:18:16 +0900 |
| commit | 09feda3783926d3eccd0061a556cdce2e5162024 (patch) | |
| tree | 912335ea2ca11af1969e5236d120249f07346a52 /main.go | |
| parent | 51e84ba8a52bcd06f544ace45f3fecb9396881ab (diff) | |
fortify: exit if seal returns error
Wait should not be called on an unsealed App.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -58,6 +58,7 @@ func main() { fmsg.Fatalf("cannot create app: %s\n", err) } else if err = a.Seal(loadConfig()); err != nil { logBaseError(err, "cannot seal app:") + fmsg.Exit(1) } else if err = a.Start(); err != nil { logBaseError(err, "cannot start app:") } |
