From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Oberbrunner Subject: Errors get suppressed by org-babel-execute-src-block Date: Mon, 8 Feb 2016 14:02:39 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114199ca438d8c052b46d812 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSr5B-00071C-AR for emacs-orgmode@gnu.org; Mon, 08 Feb 2016 14:02:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSr57-0005TI-6a for emacs-orgmode@gnu.org; Mon, 08 Feb 2016 14:02:45 -0500 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:33951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSr56-0005St-U1 for emacs-orgmode@gnu.org; Mon, 08 Feb 2016 14:02:41 -0500 Received: by mail-lf0-x230.google.com with SMTP id j78so101675291lfb.1 for ; Mon, 08 Feb 2016 11:02:40 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Orgmode Mailing List --001a114199ca438d8c052b46d812 Content-Type: text/plain; charset=UTF-8 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 --001a114199ca438d8c052b46d812 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 th= e actual problem is.=C2=A0

In my case, I'm probably = returning no result from some query, and ob-sql is mis-parsing that; but du= e to the unwind-protect it doesn't give me a stack dump or anything use= ful, just a "Beginning of buffer" message in *Messages*. And it m= akes 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
--001a114199ca438d8c052b46d812--