forked from mirrors/org-mode
org-babel-eval-error-notify: Avoid uninformative empty error buffer
* lisp/ob-eval.el (org-babel-eval-error-notify): When STDERR is empty, display the exit code in the error buffer rather than empty buffer. Reported-by: Rudolf Adamkovič <salutis@me.com> Link: https://orgmode.org/list/m2czakgpk8.fsf@me.com
This commit is contained in:
parent
1ef420b19d
commit
ab7eff9d9c
|
@ -39,7 +39,11 @@
|
|||
(let ((buf (get-buffer-create org-babel-error-buffer-name)))
|
||||
(with-current-buffer buf
|
||||
(goto-char (point-max))
|
||||
(save-excursion (insert stderr)))
|
||||
(save-excursion
|
||||
(insert
|
||||
(if (string-empty-p stderr)
|
||||
(format "[ Babel evaluation exited with code %S ]" exit-code)
|
||||
stderr))))
|
||||
(display-buffer buf))
|
||||
(message "Babel evaluation exited with code %S" exit-code))
|
||||
|
||||
|
|
Loading…
Reference in New Issue