Better error message when gramplet fails to load

svn: r13884
This commit is contained in:
Nick Hall 2009-12-22 15:48:03 +00:00
parent 9a397544a2
commit feb13b4a79

View File

@ -166,7 +166,8 @@ def make_requested_gramplet(viewpage, name, opts, dbstate, uistate):
if module:
getattr(module, opts["content"])(gui)
else:
print "Unregistered gramplet '%s': skipping content" % opts["name"]
print "Error loading gramplet '%s': skipping content" \
% opts["name"]
# now that we have user code, set the tooltips
msg = gui.tooltip
if msg is None: