branch: elpa/nix-mode
commit 1789c83b831e7af039307970233af282fd5a40e9
Author: Aaron L. Zeng <[email protected]>
Commit: Aaron L. Zeng <[email protected]>
nix-format.el: Properly escape string in error message
%S directs `format-message`, and thus `error`, to format the argument
in a way consistent with Elisp read syntax, so the contents string
literals are properly quoted and escaped.
---
nix-format.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nix-format.el b/nix-format.el
index 8d66f88f8b..3dd553df93 100644
--- a/nix-format.el
+++ b/nix-format.el
@@ -35,7 +35,7 @@
"Find the nixfmt binary, or error if it's missing."
(let ((nixfmt-bin (executable-find nix-nixfmt-bin)))
(unless nixfmt-bin
- (error "Could not locate executable \"%s\"" nix-nixfmt-bin))
+ (error "Could not locate executable %S" nix-nixfmt-bin))
nixfmt-bin))
(defun nix-format-buffer ()