From 351c10201092a6fb534728c3c19df1e87aa8fc1b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Fr=C3=B6ssman?= Date: Sun, 14 Sep 2014 12:57:44 +0200 Subject: [PATCH] Display which package that has compile errors --- lisp/use-package/use-package.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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))) -- 2.39.2