Added error information for SQL error code 13

Affects issues:
- Close #1784
This commit is contained in:
Risto Lahtela 2021-03-10 09:48:45 +02:00
parent 403d87fe2e
commit 600d64999a

View File

@ -128,7 +128,11 @@ public class DBOpException extends IllegalStateException implements ExceptionWit
case 11:
case 14:
context.related("SQLite file is corrupt.")
.whatToDo("SQLite database is corrupt, restore database.db, .db-shm & .db-wal files from a backup, or repair the database: https://wordpress.semnaitik.com/repair-sqlite-database/.");
.whatToDo("SQLite database is corrupt, restore database.db, .db-shm & .db-wal files from a backup, or repair the database: See https://wordpress.semnaitik.com/repair-sqlite-database/.");
break;
case 13:
context.related("Disk or temporary directory is full.")
.whatToDo("Disk or temporary directory is full, attempt to clear space in the temporary directory. See https://sqlite.org/rescode.html#full");
break;
case 1104:
context.whatToDo("MySQL has too small query limits for the query. SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# (higher number)");