aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@yahooinc.com>2021-12-01 09:14:14 +0100
committerHåkon Hallingstad <hakon@yahooinc.com>2021-12-01 09:14:14 +0100
commitfbe6a384b55a0191dc6a9428286a10c67f1778f6 (patch)
tree252af0b6a501c926c11204921021cea8454641d7 /client
parenta2c2a77aded8a9fb817d5b3017f9cceb679fe941 (diff)
Exit vespa cli with non-zero exit code on error
Diffstat (limited to 'client')
-rw-r--r--client/go/cmd/vespa/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/go/cmd/vespa/main.go b/client/go/cmd/vespa/main.go
index 5fdf64f5ab4..4d2390db324 100644
--- a/client/go/cmd/vespa/main.go
+++ b/client/go/cmd/vespa/main.go
@@ -6,8 +6,11 @@ package main
import (
"github.com/vespa-engine/vespa/client/go/cmd"
+ "os"
)
func main() {
- cmd.Execute()
+ if cmd.Execute() != nil {
+ os.Exit(1)
+ }
}