Skip to content

refactor(router): Update error message when Router is provided twice#47130

Closed
atscott wants to merge 1 commit intoangular:mainfrom
atscott:updateForRootErrorMessage
Closed

refactor(router): Update error message when Router is provided twice#47130
atscott wants to merge 1 commit intoangular:mainfrom
atscott:updateForRootErrorMessage

Conversation

@atscott
Copy link
Contributor

@atscott atscott commented Aug 11, 2022

The current error message is absolute in that it thinks there is only
one possible way to provide Router twice. In fact, you can get a new
instance of the Router in several ways so the error message should
indicate the exact failure case with a potential cause.

Based on findings in thread 0cbbd6a#commitcomment-80900192

@atscott atscott added the target: patch This PR is targeted for the next patch release label Aug 11, 2022
@atscott atscott requested a review from AndrewKushnir August 11, 2022 16:02
@ngbot ngbot bot added this to the Backlog milestone Aug 11, 2022
@pkozlowski-opensource pkozlowski-opensource added the action: review The PR is still awaiting reviews from at least one requested reviewer label Aug 11, 2022
@atscott atscott force-pushed the updateForRootErrorMessage branch from 80e9fca to cfeef73 Compare August 11, 2022 16:35
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

👍

The current error message is absolute in that it thinks there is only
one possible way to provide Router twice. In fact, you can get a new
instance of the Router in several ways so the error message should
indicate the exact failure case with a _potential_ cause.

Based on findings in thread angular@0cbbd6a#commitcomment-80900192
@atscott atscott force-pushed the updateForRootErrorMessage branch from cfeef73 to 7a5bdca Compare August 11, 2022 17:25
@atscott atscott added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 11, 2022
@pkozlowski-opensource
Copy link
Member

This PR was merged into the repository by commit 93289f9.

pkozlowski-opensource pushed a commit that referenced this pull request Aug 12, 2022
…47130)

The current error message is absolute in that it thinks there is only
one possible way to provide Router twice. In fact, you can get a new
instance of the Router in several ways so the error message should
indicate the exact failure case with a _potential_ cause.

Based on findings in thread 0cbbd6a#commitcomment-80900192

PR Close #47130
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: router target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants