From a4af71fb3f38735c3062c847bd693b362c303bb7 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Thu, 22 Apr 2021 22:42:44 +0300 Subject: [PATCH] Add error explanations for filecoin-specific checks when it's failed --- consensus/validation/filecoin/filecoin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/validation/filecoin/filecoin.go b/consensus/validation/filecoin/filecoin.go index 271ce5a..076f43d 100644 --- a/consensus/validation/filecoin/filecoin.go +++ b/consensus/validation/filecoin/filecoin.go @@ -16,7 +16,7 @@ func ValidateGetTransaction(payload []byte) error { var msg ftypes.SignedMessage if err := msg.UnmarshalCBOR(bytes.NewReader(payload)); err != nil { if err := msg.Message.UnmarshalCBOR(bytes.NewReader(payload)); err != nil { - return xerrors.Errorf("cannot unmarshal payload") + return xerrors.Errorf("cannot unmarshal payload: %s", err.Error()) } }