update error message based on suggestion

This commit is contained in:
tsioftas 2025-04-03 14:20:14 +03:00
parent 5ed1b90367
commit e7b1880349

View File

@ -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...)
}
}