mirror of https://github.com/ecmwf/eccodes.git
ECC-640: grib_ls -B crashes with non existent input file
This commit is contained in:
parent
022d086df7
commit
8517b20925
|
@ -214,7 +214,7 @@ static int grib_tool_with_orderby(grib_runtime_options* options)
|
||||||
set=grib_fieldset_new_from_files(0,filenames,files_count,0,0,0,options->orderby,&err);
|
set=grib_fieldset_new_from_files(0,filenames,files_count,0,0,0,options->orderby,&err);
|
||||||
if (err) {
|
if (err) {
|
||||||
grib_context_log(c,GRIB_LOG_ERROR,"unable to create index for input file %s (%s)",
|
grib_context_log(c,GRIB_LOG_ERROR,"unable to create index for input file %s (%s)",
|
||||||
filenames[0],grib_get_error_message(err));
|
filenames[0],grib_get_error_message(err));
|
||||||
exit(err);
|
exit(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue