Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add error code #408

Merged
merged 7 commits into from
Jan 18, 2024
Merged

Add error code #408

merged 7 commits into from
Jan 18, 2024

Conversation

CBists
Copy link
Collaborator

@CBists CBists commented Jan 16, 2024

Add SpqrError struct which is inherited from error interface and have ErrorCode field

Changed send error to client logic. Now before we send error to client, we check error is SpqrError or not. If is it SpqrError, then we add errorCode to sending message, else we send "SPQRU" code (Unexpected error)

@Denchick Denchick merged commit 8c71388 into pg-sharding:master Jan 18, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants