beautiful.init: use xpcall / debug.backtrace
This commit is contained in:
parent
f060fc055f
commit
ddb1f64acd
|
@ -103,7 +103,8 @@ function beautiful.init(config)
|
|||
if type(config) == 'string' then
|
||||
-- Expand the '~' $HOME shortcut
|
||||
config = config:gsub("^~/", homedir .. "/")
|
||||
success, theme = pcall(function() return dofile(config) end)
|
||||
success, theme = xpcall(function() return dofile(config) end,
|
||||
debug.traceback)
|
||||
elseif type(config) == 'table' then
|
||||
success = true
|
||||
theme = config
|
||||
|
|
Loading…
Reference in New Issue