mirror of https://github.com/k3s-io/k3s
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
parent
763188d642
commit
68f26fe9ac
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue