Skip to content

Commit eb5270b

Browse files
committed
rust-before-save-hook: log errors.
1 parent 8665005 commit eb5270b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rust-mode.el

+4-2
Original file line numberDiff line numberDiff line change
@@ -1811,9 +1811,11 @@ Return the created process."
18111811

18121812
(defun rust-before-save-hook ()
18131813
(when rust-format-on-save
1814-
(condition-case nil
1814+
(condition-case e
18151815
(rust-format-buffer)
1816-
(error nil))))
1816+
(error (format "rust-before-save-hook: %S %S"
1817+
(car e)
1818+
(cdr e))))))
18171819

18181820
(defun rust-after-save-hook ()
18191821
(when rust-format-on-save

0 commit comments

Comments
 (0)