Pretty printing error messages.