[GRASS-SVN] r53949 - grass/trunk/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 21 01:39:56 PST 2012


Author: martinl
Date: 2012-11-21 01:39:56 -0800 (Wed, 21 Nov 2012)
New Revision: 53949

Modified:
   grass/trunk/gui/wxpython/gmodeler/frame.py
Log:
wxGUI/modeler: error message cosmetics
	       (merge r53947 from devbr6)


Modified: grass/trunk/gui/wxpython/gmodeler/frame.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/frame.py	2012-11-21 09:37:55 UTC (rev 53948)
+++ grass/trunk/gui/wxpython/gmodeler/frame.py	2012-11-21 09:39:56 UTC (rev 53949)
@@ -827,7 +827,10 @@
         except GException, e:
             GError(parent = self,
                    message = _("Reading model file <%s> failed.\n"
-                               "Invalid file, unable to parse XML document.") % filename)
+                               "Invalid file, unable to parse XML document.\n\n%s") % \
+                       (filename, e),
+                   showTraceback = False)
+            return
         
         self.modelFile = filename
         self.SetTitle(self.baseTitle + " - " +  os.path.basename(self.modelFile))



More information about the grass-commit mailing list