* rcirc.el (rcirc-define-command): Mention name of malformed command

Author:
This commit is contained in:
Philip Kaludercic 2021-07-02 20:11:08 +02:00
parent e3f456255b
commit f222fe6163
No known key found for this signature in database
GPG key ID: 181F5B95AE30B336

View file

@ -2455,7 +2455,7 @@ that, an interactive form can specified."
(unless (if (listp ,argument)
(not (<= ,required (length ,argument) ,total))
(string-match ,regexp ,argument))
(user-error "Malformed input: %S" ',arguments))
(user-error "Malformed input (%s): %S" ,command ',arguments))
(let ((process (or process (rcirc-buffer-process)))
(target (or target rcirc-target)))
(ignore target process)