Update assertions.go

Fixed incorrect order of parameters to Equal
This commit is contained in:
davelondon 2015-07-05 10:37:27 -04:00
parent 089c7181b8
commit 6b09f60392

View File

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