Error in loading addon will now show in debug log
This commit is contained in:
parent
975572e858
commit
2d217e17e6
@ -315,10 +315,10 @@ def load_addon_file(path, callback=None):
|
|||||||
# evaluate the contents:
|
# evaluate the contents:
|
||||||
try:
|
try:
|
||||||
exec(contents, env)
|
exec(contents, env)
|
||||||
except:
|
except Exception as exp:
|
||||||
if callback:
|
if callback:
|
||||||
msg = _("Error in '%s' file: cannot load.") % gpr_file
|
msg = _("Error in '%s' file: cannot load.") % gpr_file
|
||||||
callback(" " + msg + "\n")
|
callback(" " + msg + "\n" + str(exp))
|
||||||
continue
|
continue
|
||||||
# There can be multiple addons per gpr file:
|
# There can be multiple addons per gpr file:
|
||||||
for results in globals()["register_results"]:
|
for results in globals()["register_results"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user