textbox: print traceback on error (#3205)

This commit is contained in:
Unai 2020-11-02 01:12:42 +01:00 committed by GitHub
parent cc67a5b40b
commit 538586c170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ end
function textbox:set_markup(text) function textbox:set_markup(text)
local success, message = self:set_markup_silently(text) local success, message = self:set_markup_silently(text)
if not success then if not success then
gdebug.print_error(message) gdebug.print_error(debug.traceback("Error parsing markup: "..message.."\nFailed with string: '"..text.."'"))
end end
end end