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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: add missing error types #3925

Merged
merged 15 commits into from Mar 28, 2024
Merged

ui: add missing error types #3925

merged 15 commits into from Mar 28, 2024

Conversation

spaced4ndy
Copy link
Contributor

No description provided.

@spaced4ndy spaced4ndy marked this pull request as ready for review March 19, 2024 10:45
@spaced4ndy spaced4ndy changed the title ui add missing redirect error ui: add missing redirect error Mar 19, 2024
@spaced4ndy spaced4ndy changed the title ui: add missing redirect error ui: add missing error types Mar 19, 2024
case INTERNAL
}

public enum RCErrorType: Decodable {
case `internal`(internalErr: String)
case identity
case noLocalAddress
case newController
case notDiscovered
case tlsStartFailed
Copy link
Contributor Author

Choose a reason for hiding this comment

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

tLSStartFailed ?

Copy link
Contributor

Choose a reason for hiding this comment

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

leTS not tread that particular path 馃槄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not about style, I mean that's how it seems it would be encoded

Copy link
Contributor Author

Choose a reason for hiding this comment

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

unless it's renamed in backend from RCETLSStartFailed to RCETlsStartFailed (which is more work)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so currently it just wouldn't decode

@@ -5211,6 +5217,8 @@ sealed class RCErrorType {
@Serializable @SerialName("internal") data class INTERNAL(val internalErr: String): RCErrorType()
@Serializable @SerialName("identity") object IDENTITY: RCErrorType()
@Serializable @SerialName("noLocalAddress") object NO_LOCAL_ADDRESS: RCErrorType()
@Serializable @SerialName("newController") object NEW_CONTROLLER: RCErrorType()
@Serializable @SerialName("notDiscovered") object NOT_DISCOVERED: RCErrorType()
@Serializable @SerialName("tlsStartFailed") object TLS_START_FAILED: RCErrorType()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

tLSStartFailed ?

@spaced4ndy spaced4ndy merged commit 32bcaad into master Mar 28, 2024
7 checks passed
@spaced4ndy spaced4ndy deleted the f/missed-err branch March 28, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants