mirror of https://github.com/ecmwf/eccodes.git
Improved error message
This commit is contained in:
parent
6d6fae0c66
commit
f529885d61
|
@ -110,7 +110,7 @@ static int execute(grib_action* a, grib_handle* h)
|
|||
if (self->nofail)
|
||||
return 0;
|
||||
if (ret != GRIB_SUCCESS) {
|
||||
grib_context_log(h->context, GRIB_LOG_ERROR, "Error while setting key %s (%s)",
|
||||
grib_context_log(h->context, GRIB_LOG_ERROR, "Error while setting key '%s' (%s)",
|
||||
self->name, grib_get_error_message(ret));
|
||||
}
|
||||
return ret;
|
||||
|
|
|
@ -34,7 +34,7 @@ EOF
|
|||
${tools_dir}/bufr_filter -f $tempFilt $sample_bufr4 2>$tempOut
|
||||
|
||||
# Check the right error message came out
|
||||
grep -q "ECCODES ERROR.*Error while setting key pack (Encoding invalid)" $tempOut
|
||||
grep -q "ECCODES ERROR.*Error while setting key 'pack' (Encoding invalid)" $tempOut
|
||||
|
||||
|
||||
# Now fix the order of keys and rerun
|
||||
|
|
Loading…
Reference in New Issue