From 49ff6cceba7a546595c5b0cc18c7501b22e0c9e9 Mon Sep 17 00:00:00 2001 From: brotzeit Date: Sat, 8 Jan 2022 19:44:06 +0100 Subject: 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 d28c4ad..025ec32 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)))))) -- cgit v1.2.3