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

Add error handling to login command #974

Merged
merged 2 commits into from Nov 9, 2017
Merged

Conversation

nkzawa
Copy link
Contributor

@nkzawa nkzawa commented Nov 9, 2017

No description provided.

debug('error response from POST /now/registration: %d %j', res.status, body)
const message = body.error && body.error.code === 'invalid_email'
? 'Invalid email address'
: 'Unexpected error. Please try again later'
Copy link
Member

Choose a reason for hiding this comment

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

I think we should retain:

Unexpected error: ${err.message}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@rauchg rauchg merged commit 3553adf into master Nov 9, 2017
@rauchg rauchg deleted the fix/login-error-handling branch November 9, 2017 08:00
leo pushed a commit that referenced this pull request Nov 10, 2017
* add error handling on login command

* fix error message
leo pushed a commit that referenced this pull request Nov 13, 2017
* add error handling on login command

* fix error message
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

2 participants