While I expect that there's no code overlap with macro expansion, I asked about similar "stop on unresolved content" behavior with respect to links here: http://article.gmane.org/gmane.emacs.orgmode/90010/

That discussion died off so I thought I'd bring up the topic again here.

Would it be possible to cause export to stop (configurably, as discussed) when a link can't be resolved instead of just applying a special format (i.e. org-latex-link-with-unknown-path-format)

On Tue, Sep 23, 2014 at 1:18 PM, Aaron Ecay <aaronecay@gmail.com> wrote:
Hi Grant,

2014ko irailak 23an, Grant Rettke-ek idatzi zuen:
>
> Aaron may I trouble you to add a flag so that if such errors occur
> then the export fails?
>
> From my perspective, if the document doesn't "compile", then nothing
> should succeed.
>
> Compile includes export from my perspective.

Indeed, that’s the direction that the next iteration of this patch will
move, motivated by your and Nicolas’s comments.

Thanks,

--
Aaron Ecay