[GRASS-dev] [bug #3069] (grass) r.mapcalc - warning/errorr amibiguity

Glynn Clements glynn at gclements.plus.com
Mon Mar 5 21:06:20 EST 2007


Maciek Sieczka via RT wrote:

> r.mapcalc still prints this double information in case 2 same called rasters
> exit within the accesible mapsets, eg.:
> 
> WARNING: 'cell/map' was found in more mapsets (also found in nic).
> ERROR: 'cell/map' was found in more mapsets (also found in nic).

r.mapcalc uses G_set_error_routine() to install an error handler; the
error handler calls G_fatal_error() regardless of the value of the
"fatal" argument.

I'll fix this.

> Moreover, in such case r.mapcalc exits with status 1. Could it be bad for scripts?

This is correct for an error.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list