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

Return after catching UpgradeRequiredError #5662

Closed
wants to merge 2 commits into from

Conversation

vitoreiji
Copy link
Contributor

Fix re-throwing UpgradeRequiredError when adding an alias from the custom domain wizard.

tutadb#1569

Fix re-throwing UpgradeRequiredError when adding an alias from the custom
domain wizard.

tutadb#1569
@@ -184,6 +184,7 @@ export class AddEmailAddressesPageAttrs implements WizardPageAttrs<AddDomainData
return false
} else if (e instanceof UpgradeRequiredError) {
await showPlanUpgradeRequiredDialog(e.plans, e.message)
return false
Copy link
Contributor

Choose a reason for hiding this comment

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

that's what you get for not having an else case huh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I mean, the else case would be throwing the error, so...

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah but you wouldn't just fallthrough to it

Copy link
Contributor Author

@vitoreiji vitoreiji left a comment

Choose a reason for hiding this comment

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

Is this better, then, @charlag?

@charlag
Copy link
Contributor

charlag commented Jul 25, 2023

I would still do everything in each brunch but maybe this is better?

@paw-hub paw-hub added this to the 3.117.0 milestone Aug 18, 2023
@paw-hub paw-hub mentioned this pull request Aug 18, 2023
@paw-hub
Copy link
Contributor

paw-hub commented Aug 18, 2023

Merged via #5794

@paw-hub paw-hub closed this Aug 18, 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.

None yet

3 participants