fix +format--set error path

In +format--set:
../modules/editor/format/autoload/settings.el:81:26:Warning: ‘error’ called
    with 0 args to fill 1 format field(s)

Signed-off-by: Edwin Török <edwin@etorok.net>
This commit is contained in:
Edwin Török 2018-10-04 00:37:09 +01:00
parent cd314a1188
commit e5ff6c8418

View file

@ -77,7 +77,7 @@
(cl-defun +format--set (name &key function modes unset)
(declare (indent defun))
(when (and unset (not (gethash name format-all-format-table)))
(error "'%s' formatter does not exist to be unset"))
(error "'%s' formatter does not exist to be unset" name))
(puthash name function format-all-format-table)
(dolist (mode (doom-enlist modes))
(cl-destructuring-bind (m &optional probe)