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

Don't throw Domain not found when trying to now alias to a new domain #702

Merged
merged 4 commits into from
Jul 7, 2017

Conversation

matheuss
Copy link
Member

Before

▲ now-cli at master ✔ now alias gifs-xfylwzhmgg.now.sh zeit.com
> zeit.com is a custom domain.
> Verifying the DNS settings for zeit.com (see https://zeit.world for help)
> Error! Domain name not found

After

▲ now-cli at fix/alias-new-domain ✔ now alias gifs-xfylwzhmgg.now.sh zeit.com           
> zeit.com is a custom domain.
> Verifying the DNS settings for zeit.com (see https://zeit.world for help)
[...]

lib/alias.js Outdated
throw err
}
}
const domainInfo = _domainInfo && !_domainInfo.error
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we do something with _domainInfo.error like relay it to the user?

Copy link
Member Author

@matheuss matheuss Jul 1, 2017

Choose a reason for hiding this comment

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

@TooTallNate we handle that somewhere – the user will see proper errors:

now alias gifs-zjduxbfjas.now.sh vigour.io
> vigour.io is a custom domain.
> Verifying the DNS settings for vigour.io (see https://zeit.world for help)
> Error! You don't have access to "vigour.io"

@matheuss
Copy link
Member Author

matheuss commented Jul 1, 2017

Will fix the prettier stuff and fix it ASAP 👍

@OlliV
Copy link
Contributor

OlliV commented Jul 5, 2017

@matheuss status?

@matheuss matheuss merged commit 4dcab27 into master Jul 7, 2017
@matheuss matheuss deleted the fix/alias-new-domain branch July 7, 2017 04:02
TooTallNate pushed a commit that referenced this pull request Aug 23, 2019
Bumps [fstream](https://github.com/npm/fstream) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/npm/fstream/releases)
- [Commits](npm/fstream@v1.0.11...v1.0.12)

Signed-off-by: dependabot[bot] <support@github.com>
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