Skip to content

Commit

Permalink
fix(gateway): display correct error with 500 (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias authored Feb 9, 2023
1 parent 93dd0a0 commit 1c6ed2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/handler_unixfs_dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (i *handler) serveDirectory(ctx context.Context, w http.ResponseWriter, r *
dirListing := make([]assets.DirectoryItem, 0, len(results))
for link := range results {
if link.Err != nil {
internalWebError(w, err)
internalWebError(w, link.Err)
return
}

Expand Down

0 comments on commit 1c6ed2e

Please sign in to comment.