Give the content subclass more flexibility to render error messages.  Close #684.