We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6308dc2 commit cc68846Copy full SHA for cc68846
1 file changed
src/pluginscript_callbacks.lua
@@ -61,7 +61,9 @@ local function print_coroutine_error(co, err, msg_prefix)
61
table_insert(msg_lines, table_concat(lps_callstack[i], ' '))
62
end
63
local msg = table_concat(msg_lines, '\n\tin ')
64
- api.godot_print_error(msg, debug_getinfo(co, 0, 'n').name, filename, tonumber(line))
+ api.godot_print_error(
65
+ ("%s:%d: %s"):format(filename, tonumber(line), msg:match("[%w%p%s]-%c"):gsub('%c', '', 1)), debug_getinfo(co, 0, 'n').name, filename, tonumber(line)
66
+ )
67
68
69
local function wrap_callback(f, error_return)
0 commit comments