Handle error messages better.