RosettaCodeData/Task/Exceptions/Lua/exceptions-4.lua
2023-07-01 13:44:08 -04:00

6 lines
159 B
Lua

function throw_error_with_argment(argument)
return "hello!"
end
status, errmsg = pcall(throw_error_with_argment, "foobar 123")
print("errmsg = ", errmsg)