From 335760bf0674ee553f3ca65afd6f29b6557d1b55 Mon Sep 17 00:00:00 2001 From: Jeff Prestes Date: Sat, 22 Dec 2018 08:39:08 -0200 Subject: accounts/abi: Brings out the msg defined at require statement in SC function (#17328) --- accounts/abi/abi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accounts') diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go index 535e5d78b..4d29814b2 100644 --- a/accounts/abi/abi.go +++ b/accounts/abi/abi.go @@ -82,7 +82,7 @@ func (abi ABI) Unpack(v interface{}, name string, output []byte) (err error) { // we need to decide whether we're calling a method or an event if method, ok := abi.Methods[name]; ok { if len(output)%32 != 0 { - return fmt.Errorf("abi: improperly formatted output") + return fmt.Errorf("abi: improperly formatted output: %s - Bytes: [%+v]", string(output), output) } return method.Outputs.Unpack(v, output) } else if event, ok := abi.Events[name]; ok { -- cgit v1.2.3