fmsg: export logBaseError function
All checks were successful
Test / Create distribution (push) Successful in 25s
Test / Run NixOS test (push) Successful in 3m16s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-02-18 13:02:51 +09:00
parent e85be67fd9
commit e9b0f9faef
3 changed files with 13 additions and 12 deletions

View File

@@ -330,11 +330,11 @@ func runApp(config *fst.Config) {
if a, err := app.New(sys); err != nil {
log.Fatalf("cannot create app: %s", err)
} else if err = a.Seal(config); err != nil {
logBaseError(err, "cannot seal app:")
fmsg.PrintBaseError(err, "cannot seal app:")
internal.Exit(1)
} else if err = a.Run(ctx, rs); err != nil {
if !rs.Start {
logBaseError(err, "cannot start app:")
fmsg.PrintBaseError(err, "cannot start app:")
} else {
logWaitError(err)
}