Do not fail if local def number does not exist

This commit is contained in:
shahramn 2024-08-20 16:14:15 +01:00
parent d162728a7b
commit a874ad0cc4
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ int grib_accessor_class_local_definition_t::pack_long(grib_accessor* a, const lo
// In test & development mode, fail so we remember to adjust PDTN // In test & development mode, fail so we remember to adjust PDTN
grib_context_log(a->context, GRIB_LOG_ERROR, grib_context_log(a->context, GRIB_LOG_ERROR,
"grib_accessor_local_definition_t: Invalid localDefinitionNumber %d", localDefinitionNumber); "grib_accessor_local_definition_t: Invalid localDefinitionNumber %d", localDefinitionNumber);
return GRIB_ENCODING_ERROR; // return GRIB_ENCODING_ERROR;
#endif #endif
// ECC-1253: Do not fail in operations. Leave PDTN as is // ECC-1253: Do not fail in operations. Leave PDTN as is
productDefinitionTemplateNumberNew = productDefinitionTemplateNumber; productDefinitionTemplateNumberNew = productDefinitionTemplateNumber;