]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - testutil/testutil.go
Consistently use %v when (s)printing errors
[safcm/safcm.git] / testutil / testutil.go
index a2e83f14e421a623044ed61813f84f36b2570caa..1722fd5242132fd463ad856fa7078789d150d3c7 100644 (file)
@@ -37,8 +37,8 @@ func AssertErrorEqual(t *testing.T, name string, act, exp error) {
        t.Helper()
 
        // Ugly but the simplest way to compare errors (including nil)
-       actStr := fmt.Sprintf("%s", act)
-       expStr := fmt.Sprintf("%s", exp)
+       actStr := fmt.Sprintf("%v", act)
+       expStr := fmt.Sprintf("%v", exp)
        if actStr != expStr {
                t.Errorf("err = %s (%#v), want %s (%#v)",
                        actStr, act, expStr, exp)