aboutsummaryrefslogtreecommitdiff
path: root/sx.el
diff options
context:
space:
mode:
Diffstat (limited to 'sx.el')
-rw-r--r--sx.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/sx.el b/sx.el
index 7d67835..cda1acd 100644
--- a/sx.el
+++ b/sx.el
@@ -107,7 +107,8 @@ is intentionally skipped."
(defun sx-user-error (format-string &rest args)
"Like `user-error', but prepend FORMAT-STRING with \"[sx]\".
See `format'."
- (signal 'user-error (list (apply #'format (concat "[sx] " format) args))))
+ (signal 'user-error
+ (list (apply #'format (concat "[sx] " format-string) args))))
(defun sx-message (format-string &rest args)
"Display FORMAT-STRING as a message with ARGS.