Merge pull request #338 from nyarly/error_format

Changing format of NoError output to make use of errors
pull/332/merge
Ernesto Jiménez 2016-09-24 15:05:22 +01:00 committed by GitHub
commit 2f3f464ae5
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ func InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, m
// Returns whether the assertion was successful (true) or not (false).
func NoError(t TestingT, err error, msgAndArgs ...interface{}) bool {
if err != nil {
return Fail(t, fmt.Sprintf("Received unexpected error %q", err), msgAndArgs...)
return Fail(t, fmt.Sprintf("Received unexpected error %+v", err), msgAndArgs...)
}
return true