Skip to content

Commit 1921f0f

Browse files
authored
Merge pull request rails#55202 from heka1024/trilogy-ssl-error
Translate `Trilogy::SSLError` to `ActiveRecord::ConnectionFailed`
2 parents 0c7a1c0 + 870d108 commit 1921f0f

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)