diff --git a/core/uploader.go b/core/uploader.go index 2d04e5a..ac66cba 100644 --- a/core/uploader.go +++ b/core/uploader.go @@ -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)