BUFR subset extraction: improve error message

This commit is contained in:
Shahram Najm 2019-01-25 12:21:23 +00:00
parent 0d47729d29
commit 483489a05a
1 changed files with 5 additions and 1 deletions

View File

@ -172,7 +172,11 @@ static int pack_long(grib_accessor* a, const long* val, size_t *len)
v[0]=1;
err=grib_pack_long(self->packAccessor,v,&l);
if (err) return err;
if (err) {
if (err == GRIB_ENCODING_ERROR)
grib_context_log(a->context,GRIB_LOG_ERROR,"Could not extract subset(s).\n\tHint: Did you forget to set unpack=1?");
return err;
}
return err;
}