From 09feda3783926d3eccd0061a556cdce2e5162024 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sun, 27 Oct 2024 23:18:16 +0900 Subject: [PATCH] fortify: exit if seal returns error Wait should not be called on an unsealed App. Signed-off-by: Ophestra Umiker --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 85fb868..746a233 100644 --- a/main.go +++ b/main.go @@ -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:") }