diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-09-08 10:11:40 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-09-08 10:11:40 +0000 |
commit | ee2e546d212cc6a22c5d823e2860c1621f4f55ec (patch) | |
tree | 6ab212dcb672cd2823804bbf74bfea233779c9bb /client/go | |
parent | 5f19d58210dee17bf2c8161b6fbea66163cd79d6 (diff) |
if upload fails, just return the error
Diffstat (limited to 'client/go')
-rw-r--r-- | client/go/cmd/deploy/prepare.go | 5 |
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]) |