Skip to content

Commit

Permalink
Wrap the liblouis exception in a clojure.lang.ExceptionInfo
Browse files Browse the repository at this point in the history
for easier handling upstream
  • Loading branch information
egli committed Jan 28, 2025
1 parent 53efe5b commit 084e276
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clj/daisyproducer2/louis.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@
;; log the params that caused the exception and bubble it up
(catch Exception e
(log/errorf "Translation failed for word '%s' with tables %s: %s" word (str translator) e)
(throw e)))))
(throw
(ex-info "Braille translation failed" {:error-id :braille-translation-failed :errors word} e))))))

0 comments on commit 084e276

Please sign in to comment.