aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-11-26 16:27:10 +0100
committerJon Marius Venstad <venstad@gmail.com>2021-11-26 16:27:10 +0100
commite8f12e10cd27603335357cf5d0bb33528d2f16d6 (patch)
tree7414d4e79637e70b8e628db7b0d17b6cf9b9019d /client
parent1b7cc92fe19468818163a392cd2ca3e02ec41d67 (diff)
Add some missing context
Diffstat (limited to 'client')
-rw-r--r--client/go/cmd/test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/go/cmd/test.go b/client/go/cmd/test.go
index 25418b4dcb5..8435cf482e4 100644
--- a/client/go/cmd/test.go
+++ b/client/go/cmd/test.go
@@ -109,7 +109,7 @@ func runTest(testPath string, target vespa.Target, dryRun bool) string {
fatalErrHint(err, "See https://cloud.vespa.ai/en/reference/testing")
}
if err = json.Unmarshal(testBytes, &test); err != nil {
- fatalErrHint(err, "See https://cloud.vespa.ai/en/reference/testing")
+ fatalErrHint(err, fmt.Sprintf("Failed parsing test at %s", testPath), "See https://cloud.vespa.ai/en/reference/testing")
}
testName := test.Name
@@ -238,7 +238,7 @@ func verify(step step, testsPath string, defaultCluster string, defaultParameter
if responseBodySpecBytes != nil {
err = json.Unmarshal(responseBodySpecBytes, &responseBodySpec)
if err != nil {
- return "", "", err
+ return "", "", fmt.Errorf("invalid response body spec: %w", err)
}
}