Skip to content

Commit

Permalink
tweak(jinx): log the error message in +jinx-load-module
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 5, 2024
1 parent 74c113b commit 72db594
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/me-natural-langs.el
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
:init
(defun +jinx-load-module ()
"Try to compile and load the jinx module and fail silently."
(condition-case nil
;; Don't show the compilation buffer
(let ((display-buffer-alist
(condition-case err
(let ((display-buffer-alist ; Hide the compilation buffer
(cons '("\\*jinx module compilation\\*"
(display-buffer-no-window)
(allow-no-window . t))
display-buffer-alist)))
(jinx--load-module))
(error nil)
(error (+log! (error-message-string err)) nil)
(:success t))))

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

0 comments on commit 72db594

Please sign in to comment.