~bzg/org-mode

93492b86192b4354c1fac406b7d265ca21503fcc — Ihor Radchenko 7 days ago fa058f6
org-compile-file: Ensure whitespace before ERR-MSG

* lisp/org-macs.el (org-compile-file): Make sure that ERR-MSG has
lading whitespace and no trailing whitepace when displaying error.

Reported-by: Niall Dooley <dooleyn@gmail.com>
Link:
https://orgmode.org/list/CADS3Lq5Uv4gK0U93H2EX9r=g43BbhzHT33oXbWVg7bAURmFvFw@mail.gmail.com
1 files changed, 7 insertions(+), 1 deletions(-)

M lisp/org-macs.el
M lisp/org-macs.el => lisp/org-macs.el +7 -1
@@ 396,7 396,13 @@ it for output."
      (when (bound-and-true-p org-batch-test)
        (message "org-compile-file log ::\n-----\n%s\n-----\n"
                 (with-current-buffer log-buf (buffer-string))))
      (error (format "File %S wasn't produced%s" output err-msg)))
      (error
       (format
        "File %S wasn't produced%s"
        output
        (if (org-string-nw-p err-msg)
            (concat "  " (org-trim err-msg))
          err-msg))))
    output))

(defun org-compile-file-commands (source process ext &optional spec err-msg)