From 0d7b54ba432fda14bac37cdad717bd6270eacc85 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Fri, 9 Jan 2015 05:57:03 -0800 Subject: [PATCH] err correction --- codec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec.go b/codec.go index 59825f9..03502e9 100644 --- a/codec.go +++ b/codec.go @@ -33,7 +33,7 @@ func stringToBytes(s string) ([]byte, error) { if p.Size > 0 { if len(sp) < 1 { - return nil, fmt.Errorf("protocol requires address, none given: %s", sp) + return nil, fmt.Errorf("protocol requires address, none given: %s", p.Name) } a, err := addressStringToBytes(p, sp[0]) if err != nil {