瀏覽代碼

wxGUI: report errors when unable to parse addons interface

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64504 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 年之前
父節點
當前提交
a0d8c30d3d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      gui/wxpython/core/toolboxes.py

+ 2 - 1
gui/wxpython/core/toolboxes.py

@@ -539,7 +539,8 @@ def _loadMetadata(module):
     """
     try:
         task = gtask.parse_interface(module)
-    except (ScriptError, UnicodeDecodeError):
+    except (ScriptError, UnicodeDecodeError) as e:
+        sys.stderr.write("%s: %s\n" % (module, e))
         return '', ''
 
     return task.get_description(full=True), \