forked from mirrors/org-mode
org-babel-eval-error-notify: Always display exit code
* lisp/ob-eval.el (org-babel-eval-error-notify): Display exit code even when stderr is not empty. Link: https://orgmode.org/list/m21qqux0ga.fsf@me.com
This commit is contained in:
parent
6bbd08f5aa
commit
d87a496b54
|
@ -40,10 +40,9 @@
|
||||||
(with-current-buffer buf
|
(with-current-buffer buf
|
||||||
(goto-char (point-max))
|
(goto-char (point-max))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(insert
|
(insert stderr)
|
||||||
(if (string-empty-p stderr)
|
(unless (bolp) (insert "\n"))
|
||||||
(format "[ Babel evaluation exited with code %S ]" exit-code)
|
(insert (format "[ Babel evaluation exited with code %S ]\n" exit-code))))
|
||||||
stderr))))
|
|
||||||
(display-buffer buf))
|
(display-buffer buf))
|
||||||
(message "Babel evaluation exited with code %S" exit-code))
|
(message "Babel evaluation exited with code %S" exit-code))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue