From 406b787f57de960f0bf9fff54dd66954b87296a9 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 13 Jun 2016 17:49:12 +0100 Subject: [PATCH] Error handling: Add more info when class not found --- src/grib_accessor_class.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/grib_accessor_class.c b/src/grib_accessor_class.c index 8e6f04919..105ac3a16 100644 --- a/src/grib_accessor_class.c +++ b/src/grib_accessor_class.c @@ -109,6 +109,8 @@ static GRIB_INLINE grib_accessor_class* get_class(grib_context* c,char* type) return *(table[i].cclass); } } + grib_context_log(c, GRIB_LOG_ERROR, "ecCodes Version: %s\nDefinition files path: %s\n", + ECCODES_VERSION_STR, c->grib_definition_files_path); grib_context_log(c,GRIB_LOG_FATAL,"unable to create class %s",type); return NULL; }