Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
return gateway errors on CAR fetching failure
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Aug 10, 2023
1 parent c9fd369 commit e2be930
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/graph_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ func (api *GraphGateway) fetchCAR(ctx context.Context, path gateway.ImmutablePat

if ipldError != nil {
fetchErr = ipldError
} else if fetchErr != nil {
fetchErr = GatewayError(fetchErr)
}

return fetchErr
Expand Down

0 comments on commit e2be930

Please sign in to comment.