There was an error while loading. Please reload this page.
1 parent 85f2b59 commit 7bd76b0Copy full SHA for 7bd76b0
mock/mock.go
@@ -807,7 +807,7 @@ func (args Arguments) Error(index int) error {
807
return nil
808
}
809
if s, ok = obj.(error); !ok {
810
- 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))
811
812
return s
813
0 commit comments