summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rust-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/rust-mode.el b/rust-mode.el
index d4b27c2..59d6675 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1811,9 +1811,11 @@ Return the created process."
(defun rust-before-save-hook ()
(when rust-format-on-save
- (condition-case nil
+ (condition-case e
(rust-format-buffer)
- (error nil))))
+ (error (format "rust-before-save-hook: %S %S"
+ (car e)
+ (cdr e))))))
(defun rust-after-save-hook ()
(when rust-format-on-save