Only allow symbols as a parameter of add_error.