mirror of
https://github.com/stretchr/testify.git
synced 2025-07-07 19:18:10 +00:00
update error message based on suggestion
This commit is contained in:
parent
5ed1b90367
commit
e7b1880349
@ -2101,7 +2101,7 @@ func ErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) bool {
|
||||
if target != nil {
|
||||
expectedText = target.Error()
|
||||
if err == nil {
|
||||
return Fail(t, fmt.Sprintf("Expected error %q but got nil.", expectedText), msgAndArgs...)
|
||||
return Fail(t, fmt.Sprintf("Expected error with %q in chain but got nil.", expectedText), msgAndArgs...)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user