Update assertions.go

Fixed incorrect order of parameters to Equal
pull/190/head
davelondon 2015-07-05 10:37:27 -04:00
parent 089c7181b8
commit 6b09f60392
1 changed files with 1 additions and 1 deletions

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