Skip to content

Commit 6b14c5a

Browse files
committed
Properly set error level for unexpected calls
1 parent a2bec9b commit 6b14c5a

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', 2)
109+
error('unexpected function "' .. name .. '" called', 3)
110110
else
111-
error('unexpected arguments provided to function "' .. name .. '"', 2)
111+
error('unexpected arguments provided to function "' .. name .. '"', 3)
112112
end
113113
end
114114

0 commit comments

Comments
 (0)