You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: provide a helpful error message if no DB access
If unable to access the database provide a helpful error message.
Now the error message will say:
Unable to connect to the database.
Ask the website administrator to verify that the database has been
created/initialized.
They should also verify that the config/config.php database
configuration is correct.
Previously it said:
Unknown Error
Copy file name to clipboardExpand all lines: lang/en_us.php
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,7 @@ protected function _LoadStrings()
94
94
$strings['Error'] = 'Error';
95
95
$strings['ReturnToPreviousPage'] = 'Return to the last page that you were on';
96
96
$strings['UnknownError'] = 'Unknown Error';
97
+
$strings['DatabaseConnectionError'] = 'Unable to connect to the database.<br/>Ask the website administrator to verify that the database has been created/initialized.<br/>They should also verify that the <code>config/config.php</code> database configuration is correct.';
97
98
$strings['InsufficientPermissionsError'] = 'You do not have permission to access this resource';
98
99
$strings['MissingReservationResourceError'] = 'A resource was not selected';
99
100
$strings['MissingReservationScheduleError'] = 'A schedule was not selected';
0 commit comments