Commit cbff7d05 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(mh-secure-message): Don't use `format' on `error' arguments.

parent a2733633
......@@ -597,9 +597,9 @@ IDENTITY is optionally the default-user-id to use."
(let ((valid-methods (list "pgpmime" "pgp" "smime"))
(valid-modes (list "sign" "encrypt" "signencrypt" "none")))
(if (not (member method valid-methods))
(error (format "Sorry. METHOD \"%s\" is invalid" method)))
(error "Sorry. METHOD \"%s\" is invalid" method))
(if (not (member mode valid-modes))
(error (format "Sorry. MODE \"%s\" is invalid" mode)))
(error "Sorry. MODE \"%s\" is invalid" mode))
(mml-unsecure-message)
(if (not (string= mode "none"))
(save-excursion
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment