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

Able to clear/unmount tasuku when top-level task throws error. #23

Open
erictheswift opened this issue Dec 24, 2023 · 1 comment
Open

Comments

@erictheswift
Copy link

Is your feature request related to a problem?

When top-level task body throws, there are two issues:

Tasuku eats my stack trace
Tasuku does not allow me to intercept console (#16) when mounted.

Describe the solution you'd like

Not sure if I want to see the stack trace anywhere by default, but
I'd love to be able to clear/unmount tasuku completely in case error happens inside top-level task and fall back to own error handling.

@erictheswift
Copy link
Author

So just to summarize: in case of error it's getting bubbled out of await topLevelTask, however there's no way to handle it and display my own content instead of tasuku because tasuku redraws / eats printed content. That's why I'd love to unmount it.

My use case: tasuku as implementation of one of CLI subcommands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant