summaryrefslogtreecommitdiff
path: root/rust-rustfmt.el
diff options
context:
space:
mode:
authorbrotzeit <brotzeitmacher@gmail.com>2022-01-08 19:44:06 +0100
committerbrotzeit <brotzeitmacher@gmail.com>2022-01-08 19:44:06 +0100
commit49ff6cceba7a546595c5b0cc18c7501b22e0c9e9 (patch)
tree396d6dec5c8120594627aaa816dac4c85d1c3c61 /rust-rustfmt.el
parentc5ed5baac29e4c89590464ee352efaf14c4b182d (diff)
downloadrust-mode-49ff6cceba7a546595c5b0cc18c7501b22e0c9e9.tar.gz
don't throw error in rust-format-on-save
so the file can be saved close #166
Diffstat (limited to 'rust-rustfmt.el')
-rw-r--r--rust-rustfmt.el2
1 files changed, 1 insertions, 1 deletions
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))))))