Skip to content

Commit

Permalink
Fix error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksej-paschenko committed Nov 24, 2023
1 parent fece9f8 commit b1b62d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/blockchain_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (h *Handler) GetBlockchainBlock(ctx context.Context, params oas.GetBlockcha
return nil, toError(http.StatusNotFound, err)
}
if err != nil {
return nil, err
return nil, toError(http.StatusInternalServerError, err)
}
res := convertBlockHeader(*block)
return &res, nil
Expand Down

0 comments on commit b1b62d0

Please sign in to comment.