[GRASS-dev] [bug #3069] (grass) r.mapcalc - warning/errorr
amibiguity
Hamish
hamish_nospam at yahoo.com
Mon Mar 5 17:24:29 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).
>
> Moreover, in such case r.mapcalc exits with status 1. Could it be bad
> for scripts?
(not commenting on the bug, just the symptoms)
exit code of 1 is appropriate if the module exited with an ERROR.
If the system found an ambiguity, it is better to stop with an error
than pick the wrong map and potentially mess up the data without the
user noticing.
Hamish
More information about the grass-dev
mailing list