-
Notifications
You must be signed in to change notification settings - Fork 2
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
PXP-635: [CLI] Terminate the TUI when there is a panic on TUI #174
Conversation
Some(s) => *s, | ||
None => match panic_info.payload().downcast_ref::<String>() { | ||
Some(s) => &s[..], | ||
None => "Box<Any>", |
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.
what does Box<Any>
mean?
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.
This was originally taken from here
As my understanding was that its a placeholder to match the string return types
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.
ok got it
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jk-gan, mfauzaan The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
Currently, when a panic occurs in the Wukong CLI, the panic message is displayed on the TUI screen and breaks the TUI rendering and makes it TUI unusable.
To address this issue, a panic hook has been implemented to capture TUI errors and ensure a safe exit. Additionally, network panics needs to be handled on a case-by-case basis, providing relevant error messages to users in the corresponding panel.
Ticket: https://mindvalley.atlassian.net/browse/PXP-635
What's Changed