diff --git a/tests/rlp_test_util.go b/tests/rlp_test_util.go index e4bd5450a84..750f348c0a9 100644 --- a/tests/rlp_test_util.go +++ b/tests/rlp_test_util.go @@ -166,7 +166,7 @@ func checkDecodeFromJSON(s *rlp.Stream, exp interface{}) error { } func addStack(op string, val interface{}, err error) error { - lines := strings.Split(err.Error(), "\n") + lines := []string{err.Error()} lines = append(lines, fmt.Sprintf("\t%s: %v", op, val)) return errors.New(strings.Join(lines, "\n")) }