Skip to content
Snippets Groups Projects
Unverified Commit 426df163 authored by Walter Leibbrandt's avatar Walter Leibbrandt Committed by GitHub
Browse files

Log database connection error before humanizing it (#10695)

* Log database connection error before humanizing it

The original, non-humanized error message may contain clues regarding the
error state, that might get lost in the humanization process.

* Log complete error at error log level
parent 190ea9fe
No related merge requests found
......@@ -31,6 +31,7 @@
;; actually if we are going to `throw-exceptions` we'll rethrow the original but attempt to humanize the message
;; first
(catch Throwable e
(log/error e (trs "Database connection error"))
(throw (Exception. (str (driver/humanize-connection-error-message driver (.getMessage e))) e))))
(try
(can-connect-with-details? driver details-map :throw-exceptions)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment