Skip to content

Commit

Permalink
Corrected error function, now prints all varargs
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone committed Nov 16, 2023
1 parent e07660b commit 8ebc392
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/wire/zvm/tests/includes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function CPUTest.RunCPU()
if CPUTest.VM.R0 == 2 then
CPUTest.TestSuite.FinishTest(false)
else
print("R0 is not 2! R0 is "..tostring(CPUTest.VM.R0))
CPUTest.TestSuite.Error("R0 is not 2! R0 is "..tostring(CPUTest.VM.R0))
CPUTest.TestSuite.FinishTest(true)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lua/wire/zvm/zvm_tests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function ZVMTestSuite.FinishTest(fail)
end

function ZVMTestSuite.Error(...)
local args = ...
local args = table.Pack(...)
MsgC(Color(255,0,0),"in file ",Color(255,255,255),ZVMTestSuite.TestQueue[#ZVMTestSuite.TestQueue],Color(255,0,0)," Error: ")
if args ~= nil then
if istable(args) then
Expand Down

0 comments on commit 8ebc392

Please sign in to comment.