summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Aune <kkraune@users.noreply.github.com>2021-10-21 09:32:52 +0200
committerGitHub <noreply@github.com>2021-10-21 09:32:52 +0200
commit85f0012937e76a96414c9fc9402b270186fcc9f4 (patch)
tree8de50895c026ec838caec59c5b387fd17af25dcc
parentad4c3de2270d2b9b8d3d234bbd17e80f78b2f2ec (diff)
parent0431d202a3c8997c64573d67ce7cadb95c31d165 (diff)
Merge pull request #19663 from vespa-engine/kkraune/err-msg
Improve error msg for cloned app not found
-rw-r--r--client/go/README.md6
-rw-r--r--client/go/cmd/clone.go3
2 files changed, 8 insertions, 1 deletions
diff --git a/client/go/README.md b/client/go/README.md
index e78c21addd7..d3803828b4c 100644
--- a/client/go/README.md
+++ b/client/go/README.md
@@ -5,3 +5,9 @@ Use it on Vespa instances running locally, remotely or in the cloud.
Prefer web service API's to this in production.
Vespa documentation: https://docs.vespa.ai
+
+Developer notes:
+
+ $ brew install go
+ $ make test
+
diff --git a/client/go/cmd/clone.go b/client/go/cmd/clone.go
index e7d77c83ebb..6550e24e094 100644
--- a/client/go/cmd/clone.go
+++ b/client/go/cmd/clone.go
@@ -7,6 +7,7 @@ package cmd
import (
"archive/zip"
"errors"
+ "fmt"
"io"
"log"
"net/http"
@@ -96,7 +97,7 @@ func cloneApplication(source string, name string) {
}
}
if !found {
- fatalErr(nil, "Could not find source application '", color.Cyan(source), "'")
+ fatalErrHint(fmt.Errorf("Could not find source application '%s'", color.Cyan(source)), "Use -f to ignore the cache")
} else {
log.Print("Created ", color.Cyan(name))
}