diff --git a/assert/assertions.go b/assert/assertions.go index fbf03f4..ee5967c 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -842,7 +842,7 @@ func EqualError(t TestingT, theError error, errString string, msgAndArgs ...inte return false } s := "An error with value \"%s\" is expected but got \"%s\". %s" - return Equal(t, theError.Error(), errString, + return Equal(t, errString, theError.Error(), s, errString, theError.Error(), message) }