Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -1,6 +1,10 @@
|
|||
function throw_error_with_argment(argument)
|
||||
function throw_error_with_arg(arg)
|
||||
return "hello!"
|
||||
end
|
||||
|
||||
status, errmsg = pcall(throw_error_with_argment, "foobar 123")
|
||||
print("errmsg = ", errmsg)
|
||||
local status, result = pcall(throw_error_with_arg, "foobar 123")
|
||||
if (status ~= 0)
|
||||
print("function returned ", result, ", but had errors.")
|
||||
else
|
||||
print("result = ", result)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue