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

Handle multiple errors in APi routes #2595

Merged
merged 1 commit into from
May 31, 2021

Conversation

dapplion
Copy link
Contributor

Motivation

See #2593. If more than one error is thrown in routes accepting an array of objects no one will ever see those errors. The logger is at the API handler level so both the node and validator will only log the first error.

Description

Log all errors in the node's side. Then return the errors concatenated to the validator client.

Closes #2593

@codeclimate
Copy link

codeclimate bot commented May 31, 2021

Code Climate has analyzed commit 0d776f0 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3

View more on Code Climate.

@wemeetagain wemeetagain merged commit ee75995 into master May 31, 2021
@wemeetagain wemeetagain deleted the dapplion/api-multiple-errors branch May 31, 2021 22:39
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.

Handle multiple errors in API Promise.all()
2 participants