We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents edb8015 + cab2acc commit 632a260Copy full SHA for 632a260
mock/mock.go
@@ -1092,7 +1092,7 @@ func (args Arguments) Error(index int) error {
1092
return nil
1093
}
1094
if s, ok = obj.(error); !ok {
1095
- panic(fmt.Sprintf("assert: arguments: Error(%d) failed because object wasn't correct type: %v", index, args.Get(index)))
+ panic(fmt.Sprintf("assert: arguments: Error(%d) failed because object wasn't correct type: %v", index, obj))
1096
1097
return s
1098
0 commit comments