Merge pull request #190 from davelondon/patch-1

Update assertions.go
pull/209/head
Ernesto Jiménez 2015-08-26 19:36:54 +01:00
commit acfa84d454
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)
}