summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/use-package/use-package.el')
-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 72550d0d35d..7cdd01d07b8 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -241,14 +241,15 @@ then the expanded macros do their job silently."
#'use-package-normalize-value)))
(:ensure
- (use-package-only-one (symbol-name head) args
- (if (null args)
- t
+ (if (null args)
+ t
+ (use-package-only-one (symbol-name head) args
(lambda (label arg)
(if (symbolp arg)
arg
(use-package-error
- ":ensure wants an optional package name (a unquoted symbol name)"))))))
+ (concat ":ensure wants an optional package name "
+ "(an unquoted symbol name)")))))))
((or :if :when :unless)
(use-package-only-one (symbol-name head) args