Humanize driver errors in Adminer #1249
jendamozna
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Any idea where should i update the code to simply process db errors:
"Cannot delete or update a parent row: a foreign key constraint fails (
db.users, CONSTRAINTusers_ibfk_1FOREIGN KEY (registration_id) REFERENCESregistrations(id))"using sth like:
[
{"regex": "update a parent row .* users_ibfk_1", txt: "Cant delete or update registration because the record references a user."}
, ...
]
So normal users can understant them?
Beta Was this translation helpful? Give feedback.
All reactions