Skip to content
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

#50 Update error reason codes #58

Merged
merged 8 commits into from
Jan 31, 2022
Merged

#50 Update error reason codes #58

merged 8 commits into from
Jan 31, 2022

Conversation

sekimondre
Copy link

Adds required error codes to responses sent by peer client when errors happens during an update call.

@sekimondre sekimondre self-assigned this Jan 27, 2022
Comment on lines +16 to +20
case .generic: return 0
case .invalidUpdateRequest: return 1003
case .noContextWithTopic: return 1301
case .unauthorizedUpdateRequest: return 3003
case .unauthorizedMatchingController: return 3005
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these codes compatible with js already?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They follow the defined reason codes, I'll add them to a RPC docs to be agreed by all platforms.

@@ -1,4 +1,5 @@
import Foundation
import Network
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this import intentional?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, removed.

@sekimondre sekimondre merged commit e014509 into develop Jan 31, 2022
@sekimondre sekimondre deleted the #50-reason-codes branch January 31, 2022 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants