From 624c5e1a719607dd220a4eeced75ab2383078ed7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 9 Aug 2019 12:09:41 -0400 Subject: [PATCH] Complain about unknown targets in 'doom compile' #1657 --- core/cli/byte-compile.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/cli/byte-compile.el b/core/cli/byte-compile.el index f83b10ff2..6e16b1f97 100644 --- a/core/cli/byte-compile.el +++ b/core/cli/byte-compile.el @@ -73,7 +73,8 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files." (push (doom-module-locate-path (doom-keyword-intern (match-string 1 module)) (intern (match-string 2 module))) - target-dirs)))) + target-dirs)) + (_ (user-error "%S is not a valid target" module)))) (and (or (null modules) (member ":private" modules)) (not recompile-p)