Add "Error: " prefix to fatal errors from k3s app entry points

Makes logged output more consistent when k3s fails during initialization

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/11498/head
Brad Davidson 2024-07-01 17:45:25 +00:00 committed by Brad Davidson
parent 763188d642
commit 68f26fe9ac
3 changed files with 3 additions and 3 deletions

View File

@ -19,6 +19,6 @@ func main() {
} }
if err := app.Run(configfilearg.MustParse(os.Args)); err != nil && !errors.Is(err, context.Canceled) { if err := app.Run(configfilearg.MustParse(os.Args)); err != nil && !errors.Is(err, context.Canceled) {
logrus.Fatal(err) logrus.Fatalf("Error: %v", err)
} }
} }

View File

@ -89,7 +89,7 @@ func main() {
} }
if err := app.Run(os.Args); err != nil && !errors.Is(err, context.Canceled) { if err := app.Run(os.Args); err != nil && !errors.Is(err, context.Canceled) {
logrus.Fatal(err) logrus.Fatalf("Error: %v", err)
} }
} }

View File

@ -80,6 +80,6 @@ func main() {
} }
if err := app.Run(configfilearg.MustParse(os.Args)); err != nil && !errors.Is(err, context.Canceled) { if err := app.Run(configfilearg.MustParse(os.Args)); err != nil && !errors.Is(err, context.Canceled) {
logrus.Fatal(err) logrus.Fatalf("Error: %v", err)
} }
} }