Complain about unknown targets in 'doom compile' #1657

This commit is contained in:
Henrik Lissner 2019-08-09 12:09:41 -04:00
parent ffa7a0323a
commit 624c5e1a71
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)