From 7515b87006348780a6e656094ffed3e80ea29018 Mon Sep 17 00:00:00 2001 From: Peter Broadhurst Date: Fri, 19 Aug 2022 16:44:54 -0400 Subject: [PATCH] Propagate the underlying parse error Signed-off-by: Peter Broadhurst --- internal/blockchain/ethereum/ethereum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/blockchain/ethereum/ethereum.go b/internal/blockchain/ethereum/ethereum.go index c9d09e030..77725f605 100644 --- a/internal/blockchain/ethereum/ethereum.go +++ b/internal/blockchain/ethereum/ethereum.go @@ -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")