Fix error print format
Co-authored-by: Dan Reeves <hey@danreev.es>
This commit is contained in:
parent
89c9f80d94
commit
869971c90f
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ end
|
||||||
local function print_error_callstack(error_message)
|
local function print_error_callstack(error_message)
|
||||||
if type(error_message) == "table" and error_message.error then
|
if type(error_message) == "table" and error_message.error then
|
||||||
print(string.format(
|
print(string.format(
|
||||||
"<<Script Error>>%s<<Script Error>>\n<<Lua Stack>>%s<</Lua Stack>>\n<<Lua Locals>>%s<</Lua Locals>>\n<<Lua Self>>%s<</Lua Self>>",
|
"<<Script Error>>%s<</Script Error>>\n<<Lua Stack>>%s<</Lua Stack>>\n<<Lua Locals>>%s<</Lua Locals>>\n<<Lua Self>>%s<</Lua Self>>",
|
||||||
error_message.error, error_message.traceback, error_message.locals, error_message.self
|
error_message.error, error_message.traceback, error_message.locals, error_message.self
|
||||||
))
|
))
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue