mirror of https://github.com/ecmwf/eccodes.git
Tools: Error messages
This commit is contained in:
parent
f80aa163f1
commit
7e9a6b4078
|
@ -113,6 +113,7 @@ int grib_tool_init(grib_runtime_options* options)
|
|||
grib_handle* hh;
|
||||
FILE* f = fopen(options->latlon_mask, "r");
|
||||
if (!f) {
|
||||
fprintf(stderr, "%s: unable to open mask file %s\n", tool_name, options->latlon_mask);
|
||||
perror(options->latlon_mask);
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
@ -137,6 +137,7 @@ int grib_tool_init(grib_runtime_options* options)
|
|||
int idx_overall = -1;
|
||||
FILE* f = fopen(options->latlon_mask, "r");
|
||||
if (!f) {
|
||||
fprintf(stderr, "%s: unable to open mask file %s\n", tool_name, options->latlon_mask);
|
||||
perror(options->latlon_mask);
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue