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

Update Promise example in the README.md #138

Merged
merged 1 commit into from
Jan 5, 2018
Merged

Conversation

ntindall
Copy link
Collaborator

@ntindall ntindall commented Dec 9, 2017

No description provided.

console.log(res.accounts);
});
}).catch(err => {
// If error_type is null, it indicates a network or runtime error.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe this is the proper way to interact with the node client errors. @michaelckelly does this seem right to you?

Maybe we should export some sort of isPlaidError function from this package to make disambiguating plaid errors from runtime/network errors easier for clients.

}));
app.use(bodyParser.json());

app.post('/plaid_exchange', (req, res) => {
Copy link
Collaborator Author

@ntindall ntindall Dec 10, 2017

Choose a reason for hiding this comment

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

i think this would be cleaner as a coroutine but maybe we shouldn't be so opinionated in our examples.. i'm imagining that this should be copy/pastable.

@ntindall ntindall merged commit e3bf544 into master Jan 5, 2018
@ntindall ntindall deleted the nt-update-readme.md branch January 5, 2018 03:29
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