summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-12-11 17:11:24 (GMT)
committer Bastien Guerry <bzg@altern.org>2012-12-11 17:11:24 (GMT)
commit0c68a27ac9830395b8eb38009d2c028cc175043c (patch)
tree8aac008ad4a5378292ffc82fc36db999d1acca87
parentc3a0dc11a36ee1fc2142b91dce6ea8c96025f839 (diff)
downloadorg-mode-0c68a27ac9830395b8eb38009d2c028cc175043c.zip
org-mode-0c68a27ac9830395b8eb38009d2c028cc175043c.tar.gz
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.
-rw-r--r--lisp/org-clock.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 3f252fd..e8ced67 100644
--- a/lisp/org-clock.el
+++ b/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: "