mirror of
https://github.com/stretchr/testify.git
synced 2025-04-27 13:13:19 +00:00
improved error message
This commit is contained in:
parent
a48cc5dabb
commit
ba887bba64
@ -429,7 +429,7 @@ func NotPanics(t *testing.T, f PanicTestFunc, msgAndArgs ...interface{}) bool {
|
|||||||
func NoError(t *testing.T, theError error, msgAndArgs ...interface{}) bool {
|
func NoError(t *testing.T, theError error, msgAndArgs ...interface{}) bool {
|
||||||
|
|
||||||
message := messageFromMsgAndArgs(msgAndArgs...)
|
message := messageFromMsgAndArgs(msgAndArgs...)
|
||||||
return Nil(t, theError, "No error is expected but got %v. %s", theError, message)
|
return Nil(t, theError, "No error is expected but got %v %s", theError, message)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user