aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/cmd/login.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/cmd/login.go')
-rw-r--r--client/go/cmd/login.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/go/cmd/login.go b/client/go/cmd/login.go
index 5011b290b9f..f4438cdbb24 100644
--- a/client/go/cmd/login.go
+++ b/client/go/cmd/login.go
@@ -12,6 +12,7 @@ var loginCmd = &cobra.Command{
Short: "Authenticate the Vespa CLI",
Example: "$ vespa auth login",
DisableAutoGenTag: true,
+ SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()
cfg, err := LoadConfig()
@@ -29,7 +30,7 @@ var loginCmd = &cobra.Command{
return err
}
if err := cfg.Write(); err != nil {
- fatalErr(err)
+ return err
}
}
}