-
Notifications
You must be signed in to change notification settings - Fork 172
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
Conversation
case .generic: return 0 | ||
case .invalidUpdateRequest: return 1003 | ||
case .noContextWithTopic: return 1301 | ||
case .unauthorizedUpdateRequest: return 3003 | ||
case .unauthorizedMatchingController: return 3005 |
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.
are these codes compatible with js already?
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.
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 |
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.
is this import intentional?
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.
No, removed.
Adds required error codes to responses sent by peer client when errors happens during an update call.