mirror of https://github.com/ecmwf/eccodes.git
Better error message when lat,lon badly specified
This commit is contained in:
parent
8e37991003
commit
c9ddef0599
|
@ -100,7 +100,7 @@ int grib_tool_init(grib_runtime_options* options)
|
|||
if (options->latlon) {
|
||||
lat = strtod(options->latlon, &theEnd);
|
||||
if (*theEnd != ',') {
|
||||
fprintf(stderr, "Error: wrong latitude value\n");
|
||||
fprintf(stderr, "Error %s: wrong latitude value. Please use 'latitude,longitude'\n",grib_tool_name);
|
||||
exit(1);
|
||||
}
|
||||
lon = strtod(++theEnd, &end1);
|
||||
|
|
Loading…
Reference in New Issue