Skip to content

Commit e4193de

Browse files
committed
Be a bit clearer in the new-adapter-API argument error
1 parent 0223967 commit e4193de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/abstract_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def initialize(config_or_deprecated_connection, deprecated_logger = nil, depreca
100100
@logger = ActiveRecord::Base.logger
101101

102102
if deprecated_logger || deprecated_connection_options || deprecated_config
103-
raise ArgumentError, "new API accepts just one config hash"
103+
raise ArgumentError, "when initializing an ActiveRecord adapter with a config hash, that should be the only argument"
104104
end
105105
else
106106
# Soft-deprecated for now; we'll probably warn in future.

0 commit comments

Comments
 (0)