Better error message when lat,lon badly specified

This commit is contained in:
Shahram Najm 2020-02-26 15:42:36 +00:00
parent 8e37991003
commit c9ddef0599
1 changed files with 1 additions and 1 deletions

View File

@ -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);