File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
activerecord/lib/active_record/connection_adapters Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ def new_client(conn_params)
72
72
raise ActiveRecord ::NoDatabaseError . db_error ( conn_params [ :dbname ] )
73
73
elsif conn_params && conn_params [ :user ] && error . message . include? ( conn_params [ :user ] )
74
74
raise ActiveRecord ::DatabaseConnectionError . username_error ( conn_params [ :user ] )
75
- elsif conn_params && conn_params [ :hostname ] && error . message . include? ( conn_params [ :hostname ] )
76
- raise ActiveRecord ::DatabaseConnectionError . hostname_error ( conn_params [ :hostname ] )
75
+ elsif conn_params && conn_params [ :host ] && error . message . include? ( conn_params [ :host ] )
76
+ raise ActiveRecord ::DatabaseConnectionError . hostname_error ( conn_params [ :host ] )
77
77
else
78
78
raise ActiveRecord ::ConnectionNotEstablished , error . message
79
79
end
You can’t perform that action at this time.
0 commit comments