From 1b9d82a9e4e6d5951a1cbba9f1dc50e40fe4076a Mon Sep 17 00:00:00 2001 From: Dmytro Kozlov Date: Wed, 13 Apr 2022 12:52:55 +0300 Subject: [PATCH] vmctl: Return non zero error code if validation or subcommand fails (#2462) --- app/vmctl/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmctl/main.go b/app/vmctl/main.go index 52176ade0..abf5df6af 100644 --- a/app/vmctl/main.go +++ b/app/vmctl/main.go @@ -215,7 +215,7 @@ func main() { err = app.Run(os.Args) if err != nil { - log.Println(err) + log.Fatalln(err) } log.Printf("Total time: %v", time.Since(start)) }