Changing format of NoError output to make use of errors

pull/338/head
Judson 2016-08-19 11:10:36 -07:00
parent d77da356e5
commit fc28fc9f86
No known key found for this signature in database
GPG Key ID: 63EA4255011F64CD
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ func InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, m
// Returns whether the assertion was successful (true) or not (false). // Returns whether the assertion was successful (true) or not (false).
func NoError(t TestingT, err error, msgAndArgs ...interface{}) bool { func NoError(t TestingT, err error, msgAndArgs ...interface{}) bool {
if err != nil { 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 return true