fortify: exit if seal returns error
test / test (push) Successful in 20s
Details
test / test (push) Successful in 20s
Details
Wait should not be called on an unsealed App. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
parent
51e84ba8a5
commit
09feda3783
1
main.go
1
main.go
|
@ -58,6 +58,7 @@ func main() {
|
||||||
fmsg.Fatalf("cannot create app: %s\n", err)
|
fmsg.Fatalf("cannot create app: %s\n", err)
|
||||||
} else if err = a.Seal(loadConfig()); err != nil {
|
} else if err = a.Seal(loadConfig()); err != nil {
|
||||||
logBaseError(err, "cannot seal app:")
|
logBaseError(err, "cannot seal app:")
|
||||||
|
fmsg.Exit(1)
|
||||||
} else if err = a.Start(); err != nil {
|
} else if err = a.Start(); err != nil {
|
||||||
logBaseError(err, "cannot start app:")
|
logBaseError(err, "cannot start app:")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue