From 4413245d639d19cd5c5aa8b7acd168ff8b399887 Mon Sep 17 00:00:00 2001 From: Leandro Carneiro <42899277+carnei-ro@users.noreply.github.com> Date: Tue, 23 May 2023 10:29:34 -0300 Subject: [PATCH] workaround(validate): panic when trying to use inexistent .Error() (#95) Co-authored-by: Leandro Carneiro --- cmd/k8s-pipeliner/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/k8s-pipeliner/main.go b/cmd/k8s-pipeliner/main.go index 857a6f1..19e6968 100644 --- a/cmd/k8s-pipeliner/main.go +++ b/cmd/k8s-pipeliner/main.go @@ -53,8 +53,8 @@ func main() { } if err := app.Run(os.Args); err != nil { - fmt.Println(err.Error()) - os.Exit(1) + fmt.Printf("error: %v", err) + os.Exit(255) } }