]> git.eshelyaron.com Git - emacs.git/commitdiff
Display which package that has compile errors
authorThomas Frössman <thomasf@jossystem.se>
Sun, 14 Sep 2014 10:57:44 +0000 (12:57 +0200)
committerThomas Frössman <thomasf@jossystem.se>
Sun, 14 Sep 2014 10:57:44 +0000 (12:57 +0200)
lisp/use-package/use-package.el

index 7e4738fc9fe76e2cfb9f39499419f2a00e292a9f..34ea1ca30e56fb84d950880c8bf8a34cd41d9239 100644 (file)
@@ -401,10 +401,11 @@ For full documentation. please see commentary.
          (eval-when-compile
            (when (bound-and-true-p byte-compile-current-file)
              ,@defines-eval
-             (with-demoted-errors
-                ,(if (stringp name)
-                     `(load ,name t)
-                   `(require ',name nil t)))))
+             (condition-case err
+                 ,(if (stringp name)
+                      `(load ,name t)
+                    `(require ',name nil t))
+               (error (message "Error compiling %s: %s" ',name err) nil))))
 
          ,(if (and (or commands (use-package-plist-get args :defer))
                    (not (use-package-plist-get args :demand)))