mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-06 15:31:22 +01:00
Tell what to do when missing MySQL privilege
Affects issues: - Close #1510
This commit is contained in:
parent
9e235518b3
commit
b2b983b05a
@ -123,6 +123,11 @@ public class DBOpException extends IllegalStateException implements ExceptionWit
|
|||||||
context.related("Constraint Violation")
|
context.related("Constraint Violation")
|
||||||
.whatToDo("Report this, there is an SQL Constraint Violation.");
|
.whatToDo("Report this, there is an SQL Constraint Violation.");
|
||||||
break;
|
break;
|
||||||
|
// Custom rules based on reported errors
|
||||||
|
case 1142:
|
||||||
|
context.related("Missing privilege")
|
||||||
|
.whatToDo("Grant the required privileges to your MySQL user (often 'REFERENCES' privilege is missing).");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
context.related("Unknown SQL Error code");
|
context.related("Unknown SQL Error code");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user