Merge pull request #96 from ac7/quote_errors

Wrap NoError message with quote marks
pull/90/merge
Ernesto Jiménez 2015-11-01 23:42:15 +00:00
commit a74f1fecd2
1 changed files with 1 additions and 1 deletions

View File

@ -801,7 +801,7 @@ func NoError(t TestingT, err error, msgAndArgs ...interface{}) bool {
return true
}
return Fail(t, fmt.Sprintf("No error is expected but got %v", err), msgAndArgs...)
return Fail(t, fmt.Sprintf("Received unexpected error %q", err), msgAndArgs...)
}
// Error asserts that a function returned an error (i.e. not `nil`).