Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants