-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix error code for when insertion check constraint fails (fix #257) #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
simplifyError txErr = do | ||
stmtErr <- Q.getPGStmtErr txErr | ||
codeMsg <- getPGCodeMsg stmtErr | ||
extractError codeMsg | ||
errTxt <- extractError codeMsg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change extractError
itself to return both code
and message
. We'll probably need to use the correct codes for the rest of the Postgres errors too
Review app available at: https://hge-ci-pull-267.herokuapp.com |
Review app available at: https://hge-ci-pull-267.herokuapp.com |
Review app available at: https://hge-ci-pull-267.herokuapp.com |
Review app available at: https://hge-ci-pull-267.herokuapp.com |
Review app available at: https://hge-ci-pull-267.herokuapp.com |
Review app available at: https://hge-ci-pull-267.herokuapp.com |
Review app https://hge-ci-pull-267.herokuapp.com is deleted |
V3_GIT_ORIGIN_REV_ID: 9eba8544b8401563b27c83f87e35b8448922b2f2
V3_GIT_ORIGIN_REV_ID: 9eba8544b8401563b27c83f87e35b8448922b2f2
No description provided.