From 4334520e9b475e60ea147b9401bc48ece8d83cc4 Mon Sep 17 00:00:00 2001 From: Mikael Kermorgant Date: Sun, 23 Sep 2018 11:21:44 +0300 Subject: [PATCH] add error message when phpactor is not found --- phpactor.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpactor.el b/phpactor.el index 79ac0c0..b31536a 100644 --- a/phpactor.el +++ b/phpactor.el @@ -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."