]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/comp.el (native-compile-async): Better error message.
authorAndrea Corallo <akrl@sdf.org>
Tue, 14 Apr 2020 07:48:24 +0000 (08:48 +0100)
committerAndrea Corallo <akrl@sdf.org>
Tue, 14 Apr 2020 07:48:24 +0000 (08:48 +0100)
lisp/emacs-lisp/comp.el

index fda8f7dc780bb09d84febda39f0c68c5e735627a..788ffb5b776f127bb3ca52e2008eeab3bf879f79 100644 (file)
@@ -2311,13 +2311,14 @@ LOAD can be nil t or 'late."
                        (list "Path not a file nor directory" path)))))
     (dolist (file files)
       (if-let ((entry (cl-find file comp-files-queue :key #'car :test #'string=)))
-          (when load
-            ;; When no load is specified (plain async compilation) we
-            ;; consider valid the one previously queued, otherwise we
-            ;; check for coherence (bug#40602).
-            (cl-assert (eq load (cdr entry))
-                       nil "Incoherent load kind in compilation queue for %s"
-                       file))
+          ;; When no load is specified (plain async compilation) we
+          ;; consider valid the one previously queued, otherwise we
+          ;; check for coherence (bug#40602).
+          (cl-assert (or (null load)
+                         (eq load (cdr entry)))
+                     nil "Trying to queue %s with LOAD %s but this is already \
+queued with LOAD %"
+                     file load (cdr entry))
         (setf comp-files-queue (append comp-files-queue `((,file . ,load))))))
     (when (zerop (comp-async-runnings))
       (comp-run-async-workers)