Skip to content

Commit 9836d36

Browse files
committed
Revert "Properly set error level for unexpected calls"
This reverts commit 6b14c5a.
1 parent 6b14c5a commit 9836d36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mock.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ function MockExpectation:when(thunk)
106106
end
107107

108108
if not validFunctionFound then
109-
error('unexpected function "' .. name .. '" called', 3)
109+
error('unexpected function "' .. name .. '" called', 2)
110110
else
111-
error('unexpected arguments provided to function "' .. name .. '"', 3)
111+
error('unexpected arguments provided to function "' .. name .. '"', 2)
112112
end
113113
end
114114

0 commit comments

Comments
 (0)