[GRASS-SVN] r59766 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 17 10:12:00 PDT 2014


Author: martinl
Date: 2014-04-17 10:12:00 -0700 (Thu, 17 Apr 2014)
New Revision: 59766

Modified:
   grass/trunk/gui/wxpython/modules/extensions.py
Log:
wxGUI: report g.extension error

Modified: grass/trunk/gui/wxpython/modules/extensions.py
===================================================================
--- grass/trunk/gui/wxpython/modules/extensions.py	2014-04-17 15:59:39 UTC (rev 59765)
+++ grass/trunk/gui/wxpython/modules/extensions.py	2014-04-17 17:12:00 UTC (rev 59766)
@@ -305,11 +305,11 @@
             flags = 'g'
         else:
             flags = 'l'
-        ret = RunCommand('g.extension', read = True,
-                         svnurl = url,
-                         flags = flags, quiet = True)
-        if not ret:
-            raise GException(_("Unable to load extensions."))
+        retcode, ret, msg = RunCommand('g.extension', read = True, getErrorMsg = True,
+                                       svnurl = url,
+                                       flags = flags, quiet = True)
+        if retcode != 0:
+            raise GException(_("Unable to load extensions. %s") % msg)
         
         currentNode = None
         for line in ret.splitlines():



More information about the grass-commit mailing list