summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwouter bolsterlee <wouter@bolsterl.ee>2017-08-03 12:18:46 +0200
committerDavid Shepherd <davidshepherd7@users.noreply.github.com>2017-08-05 10:51:03 +0100
commit5e440c33a1d24762477863af5c9b7a896df4be1b (patch)
treed46329f5680d476d770efeee9b759b846301a4d6
parentUpdate README.md (diff)
downloademacs-terminal-here-5e440c33a1d24762477863af5c9b7a896df4be1b.tar.gz
invoke user-error directly
... so that the error message actually shows up in the echo area.
-rw-r--r--terminal-here.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal-here.el b/terminal-here.el
index bd414c7..1af5d37 100644
--- a/terminal-here.el
+++ b/terminal-here.el
@@ -102,10 +102,10 @@ If projectile is installed the projectile root will be used,
Otherwise `vc-root-dir' will be used."
(interactive)
(when (not terminal-here-project-root-function)
- (signal 'user-error "No `terminal-here-project-root-function' is set."))
+ (user-error "No `terminal-here-project-root-function' is set."))
(let ((root (funcall terminal-here-project-root-function)))
(when (not root)
- (signal 'user-error "Not in any project according to `terminal-here-project-root-function'"))
+ (user-error "Not in any project according to `terminal-here-project-root-function'"))
(terminal-here-launch-in-directory root)))