summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/transient.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/transient.el b/lisp/transient.el
index 51106e7..c01d0cf 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1622,9 +1622,8 @@ be nil and PARAMS may be (but usually is not) used to set e.g. the
This function is also called internally in which case LAYOUT and
EDIT may be non-nil."
(transient--debug 'setup)
- (when (and (>= (minibuffer-depth) 1) transient--prefix)
- (error "Cannot invoke %s while minibuffer is active %s"
- this-command "on behalf of another prefix command"))
+ (when (> (minibuffer-depth) 0)
+ (user-error "Cannot invoke transient %s while minibuffer is active"))
(transient--with-emergency-exit
(cond
((not name)