Changed the way error messages were displayed.