Skip to content

Commit

Permalink
Merge pull request #992 from kaleido-io/abi-errors
Browse files Browse the repository at this point in the history
Propagate the underlying parse error
  • Loading branch information
shorsher authored Aug 23, 2022
2 parents 0ba1d49 + 7515b87 commit 63f24a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/blockchain/ethereum/ethereum.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ func (e *Ethereum) GenerateFFI(ctx context.Context, generationRequest *fftypes.F
var input FFIGenerationInput
err := json.Unmarshal(generationRequest.Input.Bytes(), &input)
if err != nil {
return nil, i18n.NewError(ctx, coremsgs.MsgFFIGenerationFailed, "unable to deserialize JSON as ABI")
return nil, i18n.WrapError(ctx, err, coremsgs.MsgFFIGenerationFailed, "unable to deserialize JSON as ABI")
}
if len(*input.ABI) == 0 {
return nil, i18n.NewError(ctx, coremsgs.MsgFFIGenerationFailed, "ABI is empty")
Expand Down

0 comments on commit 63f24a6

Please sign in to comment.