diff options
author | Martin Polden <mpolden@mpolden.no> | 2022-03-08 09:58:51 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2022-03-10 09:32:31 +0100 |
commit | 2c15ee07f243bacaa1aa153f4dd4346b51360094 (patch) | |
tree | 10af76239c833b8d35e9abf77f65dd42b7fddc4e /client | |
parent | 4316fbbdbea1bd2b884524c31b5866a6a2842c8a (diff) |
Print warning instead of error on incompatible version
Diffstat (limited to 'client')
-rw-r--r-- | client/go/cmd/log_test.go | 2 | ||||
-rw-r--r-- | client/go/cmd/root.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/client/go/cmd/log_test.go b/client/go/cmd/log_test.go index 4a6bd89c12d..fb08474dd4d 100644 --- a/client/go/cmd/log_test.go +++ b/client/go/cmd/log_test.go @@ -46,6 +46,6 @@ func TestLogOldClient(t *testing.T) { assert.Nil(t, cli.Run("auth", "cert", pkgDir)) assert.Nil(t, cli.Run("log")) - expected := "Error: client version 7.0.0 is less than the minimum supported version: 8.0.0\nHint: This is not a fatal error, but this version may not work as expected\nHint: Try 'vespa version' to check for a new version\n" + expected := "Warning: client version 7.0.0 is less than the minimum supported version: 8.0.0\nHint: This version may not work as expected\nHint: Try 'vespa version' to check for a new version\n" assert.Contains(t, stderr.String(), expected) } diff --git a/client/go/cmd/root.go b/client/go/cmd/root.go index 2dbc0e89e0f..e74bfc99e2b 100644 --- a/client/go/cmd/root.go +++ b/client/go/cmd/root.go @@ -272,7 +272,7 @@ func (c *CLI) target(opts targetOptions) (vespa.Target, error) { } if !c.isCloudCI() { // Vespa Cloud always runs an up-to-date version if err := target.CheckVersion(c.version); err != nil { - c.printErrHint(err, "This is not a fatal error, but this version may not work as expected", "Try 'vespa version' to check for a new version") + c.printWarning(err.Error(), "This version may not work as expected", "Try 'vespa version' to check for a new version") } } return target, nil |