@@ -225,14 +225,14 @@ def initialize(message = nil)
225
225
class << self
226
226
def db_error ( db_name )
227
227
NoDatabaseError . new ( <<~MSG )
228
- We could not find your database: #{ db_name } . Which can be found in the database configuration file located at config/database.yml.
228
+ We could not find your database: #{ db_name } . Which can be found in the database configuration file located at config/database.yml.
229
229
230
- To resolve this issue:
230
+ To resolve this issue:
231
231
232
- - Did you create the database for this app, or delete it? You may need to create your database.
233
- - Has the database name changed? Check your database.yml config has the correct database name.
232
+ - Did you create the database for this app, or delete it? You may need to create your database.
233
+ - Has the database name changed? Check your database.yml config has the correct database name.
234
234
235
- To create your database, run:\n \n bin/rails db:create
235
+ To create your database, run:\n \n bin/rails db:create
236
236
MSG
237
237
end
238
238
end
@@ -246,15 +246,15 @@ def initialize(message = nil)
246
246
class << self
247
247
def hostname_error ( hostname )
248
248
DatabaseConnectionError . new ( <<~MSG )
249
- There is an issue connecting with your hostname: #{ hostname } .\n
250
- Please check your database configuration and ensure there is a valid connection to your database.
249
+ There is an issue connecting with your hostname: #{ hostname } .\n
250
+ Please check your database configuration and ensure there is a valid connection to your database.
251
251
MSG
252
252
end
253
253
254
254
def username_error ( username )
255
255
DatabaseConnectionError . new ( <<~MSG )
256
- There is an issue connecting to your database with your username/password, username: #{ username } .\n
257
- Please check your database configuration to ensure the username/password are valid.
256
+ There is an issue connecting to your database with your username/password, username: #{ username } .\n
257
+ Please check your database configuration to ensure the username/password are valid.
258
258
MSG
259
259
end
260
260
end
0 commit comments