Add error explanations for filecoin-specific checks when it's failed
This commit is contained in:
parent
1633f28a7b
commit
a4af71fb3f
@ -16,7 +16,7 @@ func ValidateGetTransaction(payload []byte) error {
|
|||||||
var msg ftypes.SignedMessage
|
var msg ftypes.SignedMessage
|
||||||
if err := msg.UnmarshalCBOR(bytes.NewReader(payload)); err != nil {
|
if err := msg.UnmarshalCBOR(bytes.NewReader(payload)); err != nil {
|
||||||
if err := msg.Message.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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user