More detailed error message in class_config