Browse Source

org-clock.el (org-clock-out): Use `user-error'.

* org-clock.el (org-clock-out): Use `user-error' when the user
tries to clock out while there is no running clock.
Bastien Guerry 5 years ago
parent
commit
0c68a27ac9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-clock.el

+ 1 - 1
lisp/org-clock.el

@@ -1447,7 +1447,7 @@ to, overriding the existing value of `org-clock-out-switch-to-state'."
 	    (delq 'org-mode-line-string global-mode-string))
       (setq frame-title-format org-frame-title-format-backup)
       (force-mode-line-update)
-      (if fail-quietly (throw 'exit t) (error "No active clock")))
+      (if fail-quietly (throw 'exit t) (user-error "No active clock")))
     (let ((org-clock-out-switch-to-state
 	   (if switch-to-state
 	       (completing-read "Switch to state: "