summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-03-13 02:58:37 -0500
committerJohn Wiegley <johnw@newartisans.com>2015-03-13 02:58:37 -0500
commitaa6e3f47c74470dc4591697873e2530871e04555 (patch)
tree6dec679fc98eee66410be436c97b6e782c4338cf /lisp/use-package/use-package.el
parent3cbf5104685d309655196a18c0c436093d88df04 (diff)
downloademacs-aa6e3f47c74470dc4591697873e2530871e04555.tar.gz
emacs-aa6e3f47c74470dc4591697873e2530871e04555.tar.bz2
emacs-aa6e3f47c74470dc4591697873e2530871e04555.zip
Show more informative errors when they occur
Diffstat (limited to 'lisp/use-package/use-package.el')
-rw-r--r--lisp/use-package/use-package.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index 7b370380d4b..41127b0174b 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -403,9 +403,10 @@ For full documentation. please see commentary.
(when (bound-and-true-p byte-compile-current-file)
,@defines-eval
(with-demoted-errors
- ,(if (stringp name)
- `(load ,name t)
- `(require ',name nil t)))))
+ ,(format "Error in %s: %%S" name)
+ ,(if (stringp name)
+ `(load ,name t)
+ `(require ',name nil t)))))
,(if (and (or commands (use-package-plist-get args :defer))
(not (use-package-plist-get args :demand)))