Merge pull request #96 from ac7/quote_errors

Wrap NoError message with quote marks
This commit is contained in:
Ernesto Jiménez 2015-11-01 23:42:15 +00:00
commit a74f1fecd2

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`).