ob-async icon indicating copy to clipboard operation
ob-async copied to clipboard

Handle errors of code blocks and return them to the user

Open KaiHa opened this issue 3 years ago • 2 comments

During the execution of code-blocks some errors could go unnoticed. This PR adds code that will return an error description to the user. With this the following code blocks should return error messages instead of silently failing:

#+BEGIN_SRC emacs-lisp :async
(error "somewhere an error was signaled")
#+END_SRC
#+begin_src sh :results output :async
echo something went wrong >&2
false
#+end_src
#+begin_src python :async
raise NotImplementedError
#+end_src

See the individual commits for details.

And thanks for this awesome package.

KaiHa avatar Jan 16 '22 12:01 KaiHa

This should also fix #81.

KaiHa avatar Jan 16 '22 18:01 KaiHa

I would love to see this merged!

chasecaleb avatar Jul 12 '22 17:07 chasecaleb