Add error explanations for filecoin-specific checks when it's failed

This commit is contained in:
ChronosX88 2021-04-22 22:42:44 +03:00
parent 1633f28a7b
commit a4af71fb3f
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -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())
}
}