Error handling: Add more info when class not found

This commit is contained in:
Shahram Najm 2016-06-13 17:49:12 +01:00
parent f5c312bdaf
commit 406b787f57
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}