From 7672d605d836607169f71b6a57916d0bbd3f2a6f Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Tue, 12 Aug 2025 13:27:39 +0800 Subject: [PATCH] tests: simplify code --- tests/rlp_test_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rlp_test_util.go b/tests/rlp_test_util.go index e4bd5450a8..750f348c0a 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")) }