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

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

[nongnu] elpa/rust-mode 49ff6cceba 2/2: don't throw error in rust-format


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 49ff6cceba 2/2: don't throw error in rust-format-on-save
Date: Sat, 8 Jan 2022 13:58:43 -0500 (EST)

branch: elpa/rust-mode
commit 49ff6cceba7a546595c5b0cc18c7501b22e0c9e9
Author: brotzeit <brotzeitmacher@gmail.com>
Commit: brotzeit <brotzeitmacher@gmail.com>

    don't throw error in rust-format-on-save
    
    so the file can be saved
    
    close #166
---
 rust-rustfmt.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust-rustfmt.el b/rust-rustfmt.el
index d28c4ad923..025ec32a8f 100644
--- a/rust-rustfmt.el
+++ b/rust-rustfmt.el
@@ -352,7 +352,7 @@ Return the created process."
   (when rust-format-on-save
     (condition-case e
         (rust-format-buffer)
-      (error (format "rust-before-save-hook: %S %S"
+      (message (format "rust-before-save-hook: %S %S"
                      (car e)
                      (cdr e))))))
 



reply via email to

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