Cleaning up error messages.