last error uses generic_category