Skip to content

Commit 5d05082

Browse files
authored
Merge pull request rails#53698 from siaw23/reword-error-msg
Reword error message for `NoDatabaseError`
2 parents 8cab71c + edaab29 commit 5d05082

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activerecord/lib/active_record/errors.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,15 @@ def initialize(message = nil, connection_pool: nil)
339339
class << self
340340
def db_error(db_name)
341341
NoDatabaseError.new(<<~MSG)
342-
We could not find your database: #{db_name}. Available database configurations can be found in config/database.yml.
342+
Database not found: #{db_name}. Available database configurations can be found in config/database.yml.
343343
344344
To resolve this error:
345345
346-
- Did you not create the database, or did you delete it? To create the database, run:
346+
- Create the database by running:
347347
348348
bin/rails db:create
349349
350-
- Has the database name changed? Verify that config/database.yml contains the correct database name.
350+
- Verify that config/database.yml contains the correct database name.
351351
MSG
352352
end
353353
end

0 commit comments

Comments
 (0)