Skip to content

Commit

Permalink
add error message when phpactor is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
kermorgant committed Sep 23, 2018
1 parent 0b7319d commit 4334520
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpactor.el
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
(php-project--eval-bootstrap-scripts phpactor-executable))
(let ((vendor-executable (f-join (phpactor-package-directory) "vendor/bin/phpactor")))
(when (file-exists-p vendor-executable)
vendor-executable))))
vendor-executable))
(error "Phpactor not found. Please run phpactor-update")))

(defun phpactor-update ()
"Install or update phpactor inside phpactor.el's folder."
Expand Down

0 comments on commit 4334520

Please sign in to comment.