[GRASS-SVN] r48030 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 1 09:50:04 EDT 2011
Author: martinl
Date: 2011-09-01 06:50:04 -0700 (Thu, 01 Sep 2011)
New Revision: 48030
Modified:
grass/trunk/gui/wxpython/gui_modules/render.py
Log:
wxGUI: print reason why rendering failed
Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py 2011-09-01 13:39:25 UTC (rev 48029)
+++ grass/trunk/gui/wxpython/gui_modules/render.py 2011-09-01 13:50:04 UTC (rev 48030)
@@ -974,18 +974,19 @@
subkey = 'color')))
if maps:
- ret = gcmd.RunCommand('g.pnmcomp',
- overwrite = True,
- input = '%s' % ",".join(maps),
- mask = '%s' % ",".join(masks),
- opacity = '%s' % ",".join(opacities),
- bgcolor = bgcolor,
- width = self.width,
- height = self.height,
- output = self.mapfile)
+ ret, msg = gcmd.RunCommand('g.pnmcomp',
+ getErrorMsg = True,
+ overwrite = True,
+ input = '%s' % ",".join(maps),
+ mask = '%s' % ",".join(masks),
+ opacity = '%s' % ",".join(opacities),
+ bgcolor = bgcolor,
+ width = self.width,
+ height = self.height,
+ output = self.mapfile)
if ret != 0:
- print >> sys.stderr, _("ERROR: Rendering failed")
+ print >> sys.stderr, _("ERROR: Rendering failed. Details: %s") % msg
return None
Debug.msg (3, "Map.Render() force=%s file=%s" % (force, self.mapfile))
More information about the grass-commit
mailing list