Add category to error messages