mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-27 14:32:52 +00:00
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
|
||||
(goto-char (point-max))
|
||||
(save-excursion
|
||||
(insert
|
||||
(if (string-empty-p stderr)
|
||||
(format "[ Babel evaluation exited with code %S ]" exit-code)
|
||||
stderr))))
|
||||
(insert stderr)
|
||||
(unless (bolp) (insert "\n"))
|
||||
(insert (format "[ Babel evaluation exited with code %S ]\n" exit-code))))
|
||||
(display-buffer buf))
|
||||
(message "Babel evaluation exited with code %S" exit-code))
|
||||
|
||||
|
|
Loading…
Reference in a new issue