Pretty print errors for HTML and Text