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 committed Jun 25, 2024
1 parent b4c376a commit ce8d72c
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 @@ -160,7 +160,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 ce8d72c

Please sign in to comment.