Skip to content

Commit 72db594

Browse files
committed
tweak(jinx): log the error message in +jinx-load-module
1 parent 74c113b commit 72db594

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/me-natural-langs.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@
1515
:init
1616
(defun +jinx-load-module ()
1717
"Try to compile and load the jinx module and fail silently."
18-
(condition-case nil
19-
;; Don't show the compilation buffer
20-
(let ((display-buffer-alist
18+
(condition-case err
19+
(let ((display-buffer-alist ; Hide the compilation buffer
2120
(cons '("\\*jinx module compilation\\*"
2221
(display-buffer-no-window)
2322
(allow-no-window . t))
2423
display-buffer-alist)))
2524
(jinx--load-module))
26-
(error nil)
25+
(error (+log! (error-message-string err)) nil)
2726
(:success t))))
2827

2928
(+load minemacs-obsolete-modules-dir "me-spell-fu.el")

0 commit comments

Comments
 (0)