From 6b09f60392f1d1bb7d55dd0e081a94e93f620aa6 Mon Sep 17 00:00:00 2001 From: davelondon Date: Sun, 5 Jul 2015 10:37:27 -0400 Subject: [PATCH] Update assertions.go Fixed incorrect order of parameters to Equal --- assert/assertions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }