emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nix-mode 1789c83b83 454/500: nix-format.el: Properly escap


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 1789c83b83 454/500: nix-format.el: Properly escape string in error message
Date: Sat, 29 Jan 2022 08:27:55 -0500 (EST)

branch: elpa/nix-mode
commit 1789c83b831e7af039307970233af282fd5a40e9
Author: Aaron L. Zeng <me@bcc32.com>
Commit: Aaron L. Zeng <me@bcc32.com>

    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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]