Skip to content

Commit 870d108

Browse files
committed
Translate Trilogy::SSLError to ActiveRecord::ConnectionFailed
Fixes rails#55126
1 parent 82e9029 commit 870d108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def translate_exception(exception, message:, sql:, binds:)
181181
end
182182

183183
case exception
184-
when ::Trilogy::ConnectionClosed, ::Trilogy::EOFError
184+
when ::Trilogy::ConnectionClosed, ::Trilogy::EOFError, ::Trilogy::SSLError
185185
return ConnectionFailed.new(message, connection_pool: @pool)
186186
when ::Trilogy::Error
187187
if exception.is_a?(SystemCallError) || exception.message.include?("TRILOGY_INVALID_SEQUENCE_ID")

0 commit comments

Comments
 (0)