How to handle error messages from Rules