Skip to content

Commit

Permalink
Add details to error
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Jul 23, 2024
1 parent e07b256 commit f6c563c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/active_record/connection_adapters/percona_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def percona_connection(config)
connection = if Departure::SUPPORTED_ADAPTERS.include?(adapter)
send("#{adapter}_connection", config)
else
raise ArgumentError, "Supported Departure adapters are #{Departure::SUPPORTED_ADAPTERS.inspect}"
raise ArgumentError, "Unsupported adater #{adapter}. Supported Departure " \
"adapters are #{Departure::SUPPORTED_ADAPTERS.inspect}"
end

connection_details = Departure::ConnectionDetails.new(config)
Expand Down

0 comments on commit f6c563c

Please sign in to comment.