From: Thomas Frössman Date: Sun, 14 Sep 2014 10:57:44 +0000 (+0200) Subject: Display which package that has compile errors X-Git-Tag: emacs-29.0.90~1306^2~15^2~404^2~10^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=351c10201092a6fb534728c3c19df1e87aa8fc1b;p=emacs.git Display which package that has compile errors --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 7e4738fc9fe..34ea1ca30e5 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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)))