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

sandbox: handle snap not permitted error #27

Open
pastaghost opened this issue Aug 31, 2022 · 0 comments
Open

sandbox: handle snap not permitted error #27

pastaghost opened this issue Aug 31, 2022 · 0 comments

Comments

@pastaghost
Copy link
Collaborator

In Card::handleSubmit(), check to see if action.callback(params) (this wrapssendFlaskRPCRequest() in most cases) returns an object of type JsonRPCError. If this is the case, parse the error code to check for code 4100 (snap not permitted.) If error code 4100 is returned, display an error toast to the user with instructions to install the snap instead of piping the error message to the card output group.

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

No branches or pull requests

1 participant