Return error messages from is_allowed function.