浏览代码

org-info: Throw an error when following an info link fails

* lisp/org-info.el (org-info-follow-link): Throw an error instead of
  a message when search fails.
Nicolas Goaziou 10 年之前
父节点
当前提交
4c4f91800e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org-info.el

+ 1 - 1
lisp/org-info.el

@@ -79,7 +79,7 @@
 			  (Info-index nodename-or-index)
 			(user-error "Could not find '%s' node or index entry"
 				    nodename-or-index)))))
-    (message "Could not open: %s" name)))
+    (user-error "Could not open: %s" name)))
 
 (provide 'org-info)