Merge branch 'traceback-with-failed-to-load-error' of https://github.com/blueyed/awesome

This commit is contained in:
Uli Schlachter 2016-05-15 16:31:14 +02:00
commit 8b3f263de3
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ local function do_load_and_handle_errors(_surface, func)
if result then
return result
end
gdebug.print_error("Failed to load '" .. tostring(_surface) .. "': " .. tostring(err))
gdebug.print_error(debug.traceback(
"Failed to load '" .. tostring(_surface) .. "': " .. tostring(err)))
return get_default()
end