summaryrefslogtreecommitdiff
path: root/lisp/use-package
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-09-14 14:26:57 +0100
committerJohn Wiegley <johnw@newartisans.com>2014-09-14 14:26:57 +0100
commit4c927efbd515c502da497219734d5187dd7abb8c (patch)
treef956e64b431a757b41f7ba79a782c5ff504aa86d /lisp/use-package
parent4cf50ffbca9cc660f166ef09eec13f9318f77e80 (diff)
parent351c10201092a6fb534728c3c19df1e87aa8fc1b (diff)
downloademacs-4c927efbd515c502da497219734d5187dd7abb8c.tar.gz
emacs-4c927efbd515c502da497219734d5187dd7abb8c.tar.bz2
emacs-4c927efbd515c502da497219734d5187dd7abb8c.zip
Merge pull request from thomasf/master
Display which package that has compile errors GitHub-reference: https://github.com/jwiegley/use-package/issues/124
Diffstat (limited to 'lisp/use-package')
-rw-r--r--lisp/use-package/use-package.el9
1 files 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)))