Skip to content

Commit

Permalink
looks fresh
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Jan 8, 2025
1 parent 57c109c commit f46df48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/helpers/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func (u *presignUpload) uploadObject(ctx context.Context) (*apigen.ObjectStats,
if linkResp.JSON409 != nil {
return nil, ErrConflict
}
return nil, fmt.Errorf("link object to backing store: %w (%s)", ErrRequestFailed, linkResp.Status())
return nil, fmt.Errorf("link object to backing store: %w (%s)", ResponseAsError(linkResp), linkResp.Status())
}

func (u *presignUpload) Upload(ctx context.Context) (*apigen.ObjectStats, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/local/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func (s *SyncManager) deleteRemote(ctx context.Context, remote *uri.URI, change
return
}
if resp.StatusCode() != http.StatusNoContent {
return fmt.Errorf("could not delete object: HTTP %d: %w", resp.StatusCode(), helpers.ErrRequestFailed)
return fmt.Errorf("could not delete object: HTTP %d: %w", resp.StatusCode(), helpers.ResponseAsError(resp))
}
return
}
Expand Down

0 comments on commit f46df48

Please sign in to comment.