Skip to content

Commit

Permalink
Do not wrap error
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Nov 23, 2023
1 parent 598771c commit d6c9478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/restapi/core/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func blockIssuance() (*apimodels.IssuanceBlockHeaderResponse, error) {
func sendBlock(c echo.Context) (*apimodels.BlockCreatedResponse, error) {
iotaBlock, err := httpserver.ParseRequestByHeader(c, deps.Protocol.CommittedAPI(), iotago.BlockFromBytes(deps.Protocol))
if err != nil {
return nil, ierrors.Wrapf(httpserver.ErrInvalidParameter, "failed to parse request: %w", err)
return nil, err
}

blockID, err := deps.BlockHandler.AttachBlock(c.Request().Context(), iotaBlock)
Expand Down

0 comments on commit d6c9478

Please sign in to comment.