pretty-format.scm (format-output): Improve error printing.

* ui/cli/pretty-format.scm (format-output): Improve error
  printing.
  (format-error): New procedure.