summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2022-09-08 10:11:40 +0000
committerArne Juul <arnej@yahooinc.com>2022-09-08 10:11:40 +0000
commitee2e546d212cc6a22c5d823e2860c1621f4f55ec (patch)
tree6ab212dcb672cd2823804bbf74bfea233779c9bb /client
parent5f19d58210dee17bf2c8161b6fbea66163cd79d6 (diff)
if upload fails, just return the error
Diffstat (limited to 'client')
-rw-r--r--client/go/cmd/deploy/prepare.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/go/cmd/deploy/prepare.go b/client/go/cmd/deploy/prepare.go
index ace14c9b949..a9d1cf73d32 100644
--- a/client/go/cmd/deploy/prepare.go
+++ b/client/go/cmd/deploy/prepare.go
@@ -25,7 +25,10 @@ func RunPrepare(opts *Options, args []string) (err error) {
sessId := getSessionIdFromFile(opts.Tenant)
response, err = doPrepare(opts, sessId)
} else if isFileOrDir(args[0]) {
- RunUpload(opts, args)
+ err := RunUpload(opts, args)
+ if err != nil {
+ return err
+ }
return RunPrepare(opts, []string{})
} else if looksLikeNumber(args[0]) {
response, err = doPrepare(opts, args[0])