aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--projectile.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/projectile.el b/projectile.el
index 4f13a07..a0eaebf 100644
--- a/projectile.el
+++ b/projectile.el
@@ -5502,6 +5502,9 @@ The command actually run is returned."
(when projectile-per-project-compilation-buffer
(setq compilation-buffer-name-function #'projectile-compilation-buffer-name)
(setq compilation-save-buffers-predicate #'projectile-current-project-buffer-p))
+ (unless command
+ (user-error "No %scommand configured for project type `%s'"
+ (or prompt-prefix "") (projectile-project-type)))
(unless (file-directory-p default-directory)
(mkdir default-directory))
(projectile-run-compilation command use-comint-mode)