emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gary Oberbrunner <garyo@oberbrunner.com>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Errors get suppressed by org-babel-execute-src-block
Date: Mon, 8 Feb 2016 14:02:39 -0500	[thread overview]
Message-ID: <CAFChFyjSR2w04bOMakPpDp0BrVTYVHTPTKNxWP5XfLqQU7UkDA@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2016-02-08 19:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-08 19:02 Gary Oberbrunner [this message]
2016-02-10 20:23 ` Errors get suppressed by org-babel-execute-src-block 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFChFyjSR2w04bOMakPpDp0BrVTYVHTPTKNxWP5XfLqQU7UkDA@mail.gmail.com \
    --to=garyo@oberbrunner.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).