Improved the formatting of error messages.