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

fix: Packages stuck at "Installing package..." screen on network failure #9002

Merged

Conversation

OEvgeny
Copy link
Collaborator

@OEvgeny OEvgeny commented Feb 17, 2022

Description

When installing a package, in case of a network failure, the error passed to the importComponent catch block doesn't contain err.response.status field, so it throws a new error preventing the modal from being closed.

The PR adds an optional chaining operator for error to prevent the issue.

Task Item

The PR should fix the following a11y bug as well. Can't check this as narrator started to crash in this place after the fix (looks like a narrator bug)

Screenshots

package-install-failure-error webm

#minor

…ailure

In case of a network failure, the error passed to the `importComponent` fn catch block doesn't contain `err.response.status` field, so it throws a new error preventing the modal from beeing closed.

The PR adds an optional chaining operator for `error` to prevent the issue.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 55.959% when pulling d36e8ac on OEvgeny:fix/package-install-error-handling into 38e387d on microsoft:main.

@tonyanziano tonyanziano merged commit 8bbf851 into microsoft:main Feb 23, 2022
@OEvgeny OEvgeny deleted the fix/package-install-error-handling branch February 23, 2022 18:23
@cwhitten cwhitten mentioned this pull request Aug 15, 2023
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

Successfully merging this pull request may close these issues.

4 participants