Skip to content

fix: show no errors if users cancel lib install #2065

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

Merged
merged 1 commit into from
May 16, 2023
Merged

fix: show no errors if users cancel lib install #2065

merged 1 commit into from
May 16, 2023

Conversation

kittaakos
Copy link
Contributor

Motivation

With #2061, IDE2 shows an error notification if an error was caught during the platform/library installation. This is all good, but IDE2 throws UserAbortError when the user interrupts the installation process. In such a case, no error notification is needed.

Change description

Catch and swallow UserAbortError during the installation.

How to verify:

2063_fix.mp4

Other information

Closes #2063

Apologies for the double review, Per.

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

Throwing and catching a `UserAbortError` is part of the natural flow.

Closes #2063

Signed-off-by: Akos Kitta <[email protected]>
@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels May 11, 2023
@kittaakos kittaakos requested review from AlbyIanna and per1234 May 11, 2023 13:37
@kittaakos kittaakos self-assigned this May 11, 2023
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

Thanks Akos!

@kittaakos kittaakos merged commit ee43a12 into main May 16, 2023
@kittaakos kittaakos deleted the #2063 branch May 16, 2023 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IDE2 should not toast an error notification when users cancel the library install dialog
2 participants