branch: elpa/rust-mode
commit eb5270bc1cef48d30f33c2a312bff0638a9ff821
Author: Nathan Moreau <[email protected]>
Commit: Nathan Moreau <[email protected]>

    rust-before-save-hook: log errors.
---
 rust-mode.el | 6 ++++--
 1 file 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

Reply via email to