ox.el: Issue error for unresolved fuzzy link
commitdc08e98885015c27196843aeb62bde287da84873
authorJacob Gerlach <jacobgerlach@gmail.com>
Thu, 12 Mar 2015 02:39:11 +0000 (11 22:39 -0400)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 17 Mar 2015 21:46:05 +0000 (17 22:46 +0100)
treeff68aa028b5235d35a74ac2ce218ad7e13064731
parenta886b234763f288670103d2c98169164dedec06c
ox.el: Issue error for unresolved fuzzy link

* lisp/ox.el (org-export-resolve-fuzzy-link): Throw an error instead
  of returning nil when link can't be resolved.

* testing/lisp/test-ox.el (test-org-export/resolve-fuzzy-link): Change
  last test from should-not to should-error

In addition to throwing an error, don't store the failed match in the
link cache.

TINYCHANGE
lisp/ox.el
testing/lisp/test-ox.el