lisp/ox.el (org-export-data): Improve broken link error message
* lisp/ox.el (org-export-data): Link to `org-export-with-broken' links in the error message. Highlight that export is aborted.
This commit is contained in:
parent
fbf613ece9
commit
64049aaddc
|
@ -1900,7 +1900,7 @@ Return a string."
|
||||||
(progn ,@body)
|
(progn ,@body)
|
||||||
(org-link-broken
|
(org-link-broken
|
||||||
(pcase (plist-get info :with-broken-links)
|
(pcase (plist-get info :with-broken-links)
|
||||||
(`nil (user-error "Unable to resolve link: %S" (nth 1 err)))
|
(`nil (user-error "Org export aborted. Unable to resolve link: %S\nSee `org-export-with-broken-links'." (nth 1 err)))
|
||||||
(`mark (org-export-data
|
(`mark (org-export-data
|
||||||
(format "[BROKEN LINK: %s]" (nth 1 err)) info))
|
(format "[BROKEN LINK: %s]" (nth 1 err)) info))
|
||||||
(_ nil))))))
|
(_ nil))))))
|
||||||
|
|
Loading…
Reference in New Issue