]> git.eshelyaron.com Git - emacs.git/commitdiff
Show more informative errors when they occur
authorJohn Wiegley <johnw@newartisans.com>
Fri, 13 Mar 2015 07:58:37 +0000 (02:58 -0500)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 13 Mar 2015 07:58:37 +0000 (02:58 -0500)
lisp/use-package/use-package.el

index 7b370380d4b039e1ea387c36da4c4c11794d2d5b..41127b0174be6c70af0ccd95580c79a34d6c2ba4 100644 (file)
@@ -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)))