diff options
author | Justin Velluppillai <justin@innocraft.com> | 2021-07-19 21:21:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 21:21:20 +0300 |
commit | 9aea15489e3a4bd237933e089daaae64722efec2 (patch) | |
tree | 7decef062118cfec6cccc64b1df991de968ade79 /lang | |
parent | de484d49afbf14b538add8ccb4bae37d0d3f5d81 (diff) |
More helpful messages on db connection failures (#17789)
* Added a message map to allow translating db error messages
* Allow translation of db error message
* Also include mysql error numbers as possible detection mechanisms for errors
* Only create a new exception if we're changing the message
* Missed change
* Fixing tests
* More test fixes
* Update en.json
Use MySQL server has gone away to help people google the fix
Diffstat (limited to 'lang')
-rw-r--r-- | lang/en.json | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/en.json b/lang/en.json index f71889a9b1..de2344a89f 100644 --- a/lang/en.json +++ b/lang/en.json @@ -177,6 +177,8 @@ "ExceptionDatabaseVersion": "Your %1$s version is %2$s but Matomo requires at least %3$s.", "ExceptionDatabaseVersionNewerThanCodebase": "Your Matomo codebase is running the old version %1$s and we have detected that your Matomo Database has already been upgraded to the newer version %2$s.", "ExceptionDatabaseVersionNewerThanCodebaseWait": "Maybe your Matomo administrators are currently finishing the upgrade process. Please try again in a few minutes.", + "ExceptionDatabaseUnavailable": "MySQL server has gone away", + "ExceptionDatabaseAccess": "Database access denied", "ExceptionFileIntegrity": "Integrity check failed: %s", "ExceptionFilesizeMismatch": "File size mismatch: %1$s (expected length: %2$s, found: %3$s)", "ExceptionIncompatibleClientServerVersions": "Your %1$s client version is %2$s which is incompatible with server version %3$s.", |