Skip to content

Commit

Permalink
uploader: Fix error returned when backup URL can't be built
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges authored and mjh1 committed Jul 25, 2024
1 parent bab205f commit 8e1577c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func uploadFileWithBackup(outputURI *url.URL, fileName string, fields *drivers.F
backupURI, err := buildBackupURI(outputURI, storageFallbackURLs)
if err != nil {
glog.Errorf("failed to build backup URL: %v", err)
return err
return primaryErr
}
glog.Warningf("Primary upload failed, uploading to backupURL=%s primaryErr=%q", backupURI.Redacted(), primaryErr)

Expand Down

0 comments on commit 8e1577c

Please sign in to comment.