From 0cda14b6cbd47af9ae3d46ca1afad5bf946dcdcd Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Fri, 28 Aug 2015 13:56:18 -0700 Subject: [PATCH] Print error in Assert{,Not}Error. --- test/test-tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-tools.go b/test/test-tools.go index 9ff123c0b..45cb3e6eb 100644 --- a/test/test-tools.go +++ b/test/test-tools.go @@ -50,7 +50,7 @@ func AssertNotError(t *testing.T, err error, message string) { // AssertError checks that err is non-nil func AssertError(t *testing.T, err error, message string) { if err == nil { - t.Fatalf("%s %s", caller(), message) + t.Fatalf("%s %s: %s", caller(), message, err) } }