emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Errors get suppressed by org-babel-execute-src-block
@ 2016-02-08 19:02 Gary Oberbrunner
  2016-02-10 20:23 ` Aaron Ecay
  0 siblings, 1 reply; 11+ messages in thread
From: Gary Oberbrunner @ 2016-02-08 19:02 UTC (permalink / raw)
  To: Orgmode Mailing List

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

org-babel-execute-src-block has a big unwind-protect that basically eats
all errors inside it. I don't think it used to do that. It makes it hard to
debug my sql code since I can't figure out where the actual problem is.

In my case, I'm probably returning no result from some query, and ob-sql is
mis-parsing that; but due to the unwind-protect it doesn't give me a stack
dump or anything useful, just a "Beginning of buffer" message in
*Messages*. And it makes setting debug-on-error not work too.

I'm considering replacing/augmenting that stanza with a condition-case.
What do folks here think? Is there a better way?

-- 
Gary

[-- Attachment #2: Type: text/html, Size: 803 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-02-22 16:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-08 19:02 Errors get suppressed by org-babel-execute-src-block Gary Oberbrunner
2016-02-10 20:23 ` Aaron Ecay
2016-02-10 22:57   ` Nicolas Goaziou
2016-02-12 17:22     ` Aaron Ecay
2016-02-11 17:08   ` Nick Dokos
2016-02-12 17:31     ` Aaron Ecay
2016-02-12 17:59       ` Nick Dokos
2016-02-14 16:07         ` Aaron Ecay
2016-02-20 13:01           ` Nicolas Goaziou
2016-02-20 13:33             ` Nick Dokos
2016-02-22 16:05               ` Aaron Ecay

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).