Fix error print format

Co-authored-by: Dan Reeves <hey@danreev.es>
This commit is contained in:
Lucas Schwiderski 2023-05-11 20:08:09 +02:00 committed by GitHub
parent 89c9f80d94
commit 869971c90f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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