[GRASS-SVN] r53947 - grass/branches/develbranch_6/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 21 01:37:47 PST 2012


Author: martinl
Date: 2012-11-21 01:37:46 -0800 (Wed, 21 Nov 2012)
New Revision: 53947

Modified:
   grass/branches/develbranch_6/gui/wxpython/gmodeler/frame.py
Log:
wxGUI/modeler: error message cosmetics


Modified: grass/branches/develbranch_6/gui/wxpython/gmodeler/frame.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gmodeler/frame.py	2012-11-21 09:25:10 UTC (rev 53946)
+++ grass/branches/develbranch_6/gui/wxpython/gmodeler/frame.py	2012-11-21 09:37:46 UTC (rev 53947)
@@ -803,7 +803,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