ECC-1054: Improve error message

This commit is contained in:
Shahram Najm 2022-06-27 20:31:30 +01:00
parent 28db3ea901
commit dce03425ed
1 changed files with 2 additions and 1 deletions

View File

@ -363,7 +363,8 @@ static void __expand(grib_accessor* a, bufr_descriptors_array* unexpanded, bufr_
uidx = grib_bufr_descriptors_array_get(expanded, idx); uidx = grib_bufr_descriptors_array_get(expanded, idx);
if (size > 100) { if (size > 100) {
grib_context_log(c, GRIB_LOG_ERROR, grib_context_log(c, GRIB_LOG_ERROR,
"Delayed replication %06ld: Too many elements (%lu)", uidx->code, size); "Delayed replication %06ld: Too many elements (%lu). "
"Hint: This may be due to associated field descriptors", uidx->code, size);
*err = GRIB_DECODING_ERROR; *err = GRIB_DECODING_ERROR;
return; return;
} }