mirror of https://github.com/ecmwf/eccodes.git
Add more user friendly error messages
This commit is contained in:
parent
58456d3a9f
commit
7329cb7917
|
@ -172,7 +172,8 @@ static int get_native_type(grib_accessor* a)
|
|||
return GRIB_TYPE_LONG;
|
||||
}
|
||||
|
||||
static int select_area(grib_accessor* a) {
|
||||
static int select_area(grib_accessor* a)
|
||||
{
|
||||
int ret=0;
|
||||
long compressed=0;
|
||||
grib_accessor_bufr_extract_area_subsets *self =(grib_accessor_bufr_extract_area_subsets*)a;
|
||||
|
@ -256,6 +257,7 @@ static int select_area(grib_accessor* a) {
|
|||
subsets=0;
|
||||
|
||||
} else {
|
||||
grib_context_log(c, GRIB_LOG_ERROR, "Area extraction not implemented for uncompressed BUFR messages");
|
||||
return GRIB_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
|
|
@ -386,6 +386,7 @@ static int select_datetime(grib_accessor* a)
|
|||
subsets=0;
|
||||
|
||||
} else {
|
||||
grib_context_log(c, GRIB_LOG_ERROR, "Time interval extraction not implemented for uncompressed BUFR messages");
|
||||
return GRIB_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue