From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [feature request] more informative error message when calling an undefined src block Date: Tue, 10 Jan 2017 13:26:25 +0100 Message-ID: <87wpe33xu6.fsf@nicolasgoaziou.fr> References: <871swcl2bq.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQvVb-0001RU-BM for emacs-orgmode@gnu.org; Tue, 10 Jan 2017 07:26:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQvVW-0002C1-Jc for emacs-orgmode@gnu.org; Tue, 10 Jan 2017 07:26:35 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:48421) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cQvVW-00029Y-DC for emacs-orgmode@gnu.org; Tue, 10 Jan 2017 07:26:30 -0500 Received: from saiph.selenimh (00004301000000000000074b.ipv6.chd.sx [IPv6:2a03:a0a0:0:4301::74b]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 96B80172137 for ; Tue, 10 Jan 2017 13:26:27 +0100 (CET) Received: from ngz by saiph.selenimh with local (Exim 4.88) (envelope-from ) id 1cQvVR-0003nQ-LV for emacs-orgmode@gnu.org; Tue, 10 Jan 2017 13:26:25 +0100 In-Reply-To: <871swcl2bq.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Mon, 09 Jan 2017 14:45:13 +0000") 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" To: emacs-orgmode@gnu.org Hello, Eric S Fraga writes: > I have been trying to track down a nil link on export [1]. I have been > bisecting a long document. As part of this, I commented out a src block > used elsewhere in the document. The error trace [abridged] I get upon > export is: > > Debugger entered--Lisp error: (wrong-type-argument consp nil) > org-babel-exp-code(nil lob) > org-babel-exp-do-export(nil lob) > org-babel-exp-process-buffer() > org-export-as(latex nil nil nil (:output-file "t.tex")) > > which was luckily just enough for me to figure out what I had done but I > think it could be more informative? E.g. it would be nice if it said > which code it tried to invoke? > > Thanks, > eric > > Footnotes: > [1] related problem: "Unable to resolve link: nil" is not very > informative either and it's driving me crazy! I've not yet tracked down > what the problem is but it has something to do with using my own labels > for tables. More later when I figure it out. Could you provide an ECM? Regards, -- Nicolas Goaziou