Print error in Assert{,Not}Error.

This commit is contained in:
Jacob Hoffman-Andrews 2015-08-28 13:56:18 -07:00
parent 8f3cd5e446
commit 0cda14b6cb
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}