[GRASS-git] [OSGeo/grass] ead5f7: rasterlib: Explain missing header file in get_cell...
Vaclav Petras
noreply at github.com
Tue Nov 17 03:11:06 PST 2020
Branch: refs/heads/master
Home: https://github.com/OSGeo/grass
Commit: ead5f7cbd3018f9c8269019940ba005d870d2ba6
https://github.com/OSGeo/grass/commit/ead5f7cbd3018f9c8269019940ba005d870d2ba6
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2020-11-17 (Tue, 17 Nov 2020)
Changed paths:
M lib/raster/get_cellhd.c
Log Message:
-----------
rasterlib: Explain missing header file in get_cellhd (#933)
When header file is missing, the user is presented with 'Unable to open header file for raster map'.
Clearly not the same as unable to open map, but it is not clear what is wrong as it is not clear
what actually is the relation ship of the header file to the raster map or why this error occurred
and not the map not found one.
This adds some hints on what may have happened, so the user can start investigation (or recomputation) being
more informed on what might be the problem. At the same time, this keeps the original (core of the) message there
so that there is no doubt about what was the immediate cause of the error.
This PR also fixes the construction of an English sentence in the translatable string and replaces that by
adding another sentence.
The normal case and the two reclass cases each give a different info as the context is likely different.
In all cases 'It seems' and 'Perhaps' are used to indicate uncertainty of the message.
The documentation of the function was outdated mentioning return codes and warnings, now updated with G_fatal_error().
Since most of the lines in this file change, the indent script was applied.
More information about the grass-commit
mailing list