Tools: Error reporting

This commit is contained in:
shahramn 2024-12-13 18:21:19 +00:00
parent 42793ae1ff
commit 0cd5d0422c
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ int grib_tool_init(grib_runtime_options* options)
options->idx = grib_fieldset_new_from_files(context, filename, options->idx = grib_fieldset_new_from_files(context, filename,
nfiles, 0, 0, 0, orderby, &ret); nfiles, 0, 0, 0, orderby, &ret);
if (ret) { if (ret) {
fprintf(stderr, "%s: Unable to create index for input file %s (%s)", fprintf(stderr, "%s: Unable to create index for input file '%s' (%s)\n",
tool_name, options->infile_extra->name, grib_get_error_message(ret)); tool_name, options->infile_extra->name, grib_get_error_message(ret));
exit(ret); exit(ret);
} }