]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/ert.el (ert--results-move): Change error to user-error
authorArtur Malabarba <bruce.connor.am@gmail.com>
Mon, 25 Jan 2016 08:54:34 +0000 (08:54 +0000)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Mon, 25 Jan 2016 08:55:17 +0000 (08:55 +0000)
lisp/emacs-lisp/ert.el

index f4be947339493cc2514162b0b12d40ad1ef8a932..7a914da3977b207a4d13f71a95bd5075fef6c11a 100644 (file)
@@ -2128,12 +2128,12 @@ To be used in the ERT results buffer."
   "Move point from NODE to the previous or next node.
 
 EWOC-FN specifies the direction and should be either `ewoc-prev'
-or `ewoc-next'.  If there are no more nodes in that direction, an
-error is signaled with the message ERROR-MESSAGE."
+or `ewoc-next'.  If there are no more nodes in that direction, a
+user-error is signaled with the message ERROR-MESSAGE."
   (cl-loop
    (setq node (funcall ewoc-fn ert--results-ewoc node))
    (when (null node)
-     (error "%s" error-message))
+     (user-error "%s" error-message))
    (unless (ert--ewoc-entry-hidden-p (ewoc-data node))
      (goto-char (ewoc-location node))
      (cl-return))))