Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

feat: adds more descriptive subdomain errors #259

Merged
merged 1 commit into from
Jun 25, 2019
Merged

feat: adds more descriptive subdomain errors #259

merged 1 commit into from
Jun 25, 2019

Conversation

EverlastingBugstopper
Copy link
Contributor

Warns users when attempting to add a subdomain w/o account_id in
wrangler.toml

Doesn't show failure when attempting to register the subdomain that
is already associated with their account

Fixes #207

Copy link
Contributor

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

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

looks great! merge at will once rebased :)

Copy link
Contributor

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

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

i think this looks good- i want to discuss the subdomain "info/success" message a little more as i think it might be confusing, but otherwise i think we are good to go!

src/commands/subdomain.rs Outdated Show resolved Hide resolved
);
if sd == name {
println!(
"{} Your subdomain {}.workers.dev has already been registered!",
Copy link
Contributor

Choose a reason for hiding this comment

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

I would read this as "Your subdomain has already been registered (by someone else)" – is that the intent here? If not, should it be something like "You've already registered the subdomain xyz.workers.dev"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah so this case is specifically for when the user is trying to register the subdomain that they themselves have already registered. The latter makes sense to me

Warns users when attempting to add a subdomain w/o account_id in
wrangler.toml

Doesn't show failure when attempting to register the subdomain that
is already associated with their account
@EverlastingBugstopper EverlastingBugstopper merged commit f0ba5ab into cloudflare:master Jun 25, 2019
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.

Give a nicer error message back if a user runs subdomain command with their existing subdomain
3 participants