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

Event reducer test & sentryInterface response validation #135

Merged
merged 5 commits into from
May 6, 2019

Conversation

samparsky
Copy link
Contributor

@samparsky samparsky changed the title Event aggregator tests Event reducer test & sentryInterface response validation Apr 24, 2019
Copy link
Member

@Ivshti Ivshti 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 the error handling there should be throwing

return fetchJson(url).then(({ validatorMessages }) => {
if (validatorMessages.length) {
const { err } = sentry.message.validate(validatorMessages)
return !err ? validatorMessages[0].msg : null
Copy link
Member

Choose a reason for hiding this comment

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

silent errors are not a good idea;

perhaps throw here and see what happens? I think it will be caught by the tick catch and the tick would be aborted, which is OK

@Ivshti Ivshti merged commit 9c8bd08 into AmbireTech:master May 6, 2019
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.

2 participants