Skip to content

Commit 193e27b

Browse files
committed
Unify method error display to users to "user-error" function
1 parent 788b409 commit 193e27b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpactor.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ of GitHub.")
117117
(let ((vendor-executable (f-join phpactor-install-directory "vendor/bin/phpactor")))
118118
(if (file-exists-p vendor-executable)
119119
vendor-executable
120-
(warn "Phpactor not found. Please run phpactor-install-or-update")
120+
(warn "Phpactor not found. Please run `phpactor-install-or-update' command")
121121
nil)))
122122

123123
(defcustom phpactor-executable (phpactor--find-executable)
@@ -550,7 +550,7 @@ function."
550550
(when (and version (not (equal phpactor--supported-rpc-version version)))
551551
(if phpactor-executable
552552
(error "Phpactor uses rpc protocol %s but this package requires %s" version phpactor--supported-rpc-version)
553-
(error "Phpactor should be upgraded. Please run phpactor-install-or-update")))
553+
(user-error "Phpactor should be upgraded. Please run `phpactor-install-or-update' command")))
554554
(phpactor--add-history 'phpactor-action-dispatch (list :action action :parameters parameters :version version))
555555
(let ((func (cdr-safe (assq (intern action) phpactor-action-table))))
556556
(if func

0 commit comments

Comments
 (0)