diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/block_test_util.go | 2 | ||||
-rw-r--r-- | tests/init.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/block_test_util.go b/tests/block_test_util.go index 9b00e516a..b92c183e1 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -491,7 +491,7 @@ func mustConvertBytes(in string) []byte { h := unfuckFuckedHex(strings.TrimPrefix(in, "0x")) out, err := hex.DecodeString(h) if err != nil { - panic(fmt.Errorf("invalid hex: %q: ", h, err)) + panic(fmt.Errorf("invalid hex: %q", h)) } return out } diff --git a/tests/init.go b/tests/init.go index c5a05512b..5112b274d 100644 --- a/tests/init.go +++ b/tests/init.go @@ -67,7 +67,7 @@ func init() { func readJson(reader io.Reader, value interface{}) error { data, err := ioutil.ReadAll(reader) if err != nil { - return fmt.Errorf("Error reading JSON file", err.Error()) + return fmt.Errorf("error reading JSON file: %v", err) } if err = json.Unmarshal(data, &value); err != nil { if syntaxerr, ok := err.(*json.SyntaxError); ok { |