[GRASS-SVN] r69574 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Sep 25 20:01:30 PDT 2016
Author: wenzeslaus
Date: 2016-09-25 20:01:30 -0700 (Sun, 25 Sep 2016)
New Revision: 69574
Modified:
grass/trunk/lib/python/script/raster.py
grass/trunk/lib/python/script/raster3d.py
Log:
pythonlib: report the failed map calc expressions
Modified: grass/trunk/lib/python/script/raster.py
===================================================================
--- grass/trunk/lib/python/script/raster.py 2016-09-26 02:53:54 UTC (rev 69573)
+++ grass/trunk/lib/python/script/raster.py 2016-09-26 03:01:30 UTC (rev 69574)
@@ -110,7 +110,8 @@
write_command('r.mapcalc', file='-', stdin=e, env=env, seed=seed,
quiet=quiet, verbose=verbose, overwrite=overwrite)
except CalledModuleError:
- fatal(_("An error occurred while running r.mapcalc"))
+ fatal(_("An error occurred while running r.mapcalc"
+ " with expression: %s") % e)
def mapcalc_start(exp, quiet=False, verbose=False, overwrite=False,
Modified: grass/trunk/lib/python/script/raster3d.py
===================================================================
--- grass/trunk/lib/python/script/raster3d.py 2016-09-26 02:53:54 UTC (rev 69573)
+++ grass/trunk/lib/python/script/raster3d.py 2016-09-26 03:01:30 UTC (rev 69574)
@@ -89,4 +89,5 @@
write_command('r3.mapcalc', file='-', stdin=e, env=env, seed=seed,
quiet=quiet, verbose=verbose, overwrite=overwrite)
except CalledModuleError:
- fatal(_("An error occurred while running r3.mapcalc"))
+ fatal(_("An error occurred while running r3.mapcalc"
+ " with expression: %s") % e)
More information about the grass-commit
mailing list