-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(client/electron): propagate structured errors from Go to TypeScript #2033
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b9e4bef
feat(client/cordova): propagate structured errors from Go to TypeScript
jyyi1 26eb986
use platerrors in shadowsocks.NewClient
jyyi1 fe2aacc
use structured details instead of a raw string
jyyi1 178eab7
add PlatformError to TypeScript
jyyi1 f19d5ba
prettier platform_error.ts
jyyi1 2ae0d3f
prettier server.ts and error_code_localizer.ts
jyyi1 56073d6
rename some business logic error codes
jyyi1 16a22a3
fix lint error
jyyi1 c44ca5d
update electron tun2socks binary to use the new platform error
jyyi1 afc7d84
Add error wiring for electron
jyyi1 0343910
resolve linting errors
jyyi1 68233cb
Merge branch 'master' into junyi/err-propagation-electron
jyyi1 0432ca4
Go: combine multiple error codes into ERR_INTERNAL_ERROR
jyyi1 cc50b11
update error code in both ts and go
jyyi1 68b5fdc
improve cross component call logic
jyyi1 54ea899
normalize electron IPC error message in ipcRenderer
jyyi1 9a89335
fix code: PR comment - 1
jyyi1 c8be75d
Merge branch 'master' into junyi/err-propagation-electron
jyyi1 bc6b415
refine electron IPC error pattern matching
jyyi1 9f94e54
fix typo in comment
jyyi1 fbcf1df
Merge branch 'master' into junyi/err-propagation-electron
jyyi1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why is this type
GoTun2socks
? Why do we need two?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.
Because we are invoking the same binary with different arguments. And these two processes might run at the same time. For example, we will check connectivity here, and tun2socks is still running until we stop it later.