[GRASS-SVN] r59767 - grass/branches/releasebranch_7_0/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 17 10:13:04 PDT 2014


Author: martinl
Date: 2014-04-17 10:13:04 -0700 (Thu, 17 Apr 2014)
New Revision: 59767

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/modules/extensions.py
Log:
wxGUI: report g.extension error
       (merge r59766 from trunk)


Modified: grass/branches/releasebranch_7_0/gui/wxpython/modules/extensions.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/modules/extensions.py	2014-04-17 17:12:00 UTC (rev 59766)
+++ grass/branches/releasebranch_7_0/gui/wxpython/modules/extensions.py	2014-04-17 17:13:04 UTC (rev 59767)
@@ -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