Skip to content

Catch errors creating new iteratos in rowReaders #221

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

Merged
merged 2 commits into from
Apr 13, 2018
Merged

Catch errors creating new iteratos in rowReaders #221

merged 2 commits into from
Apr 13, 2018

Conversation

jfontan
Copy link
Contributor

@jfontan jfontan commented Apr 12, 2018

Fixes: #215

@jfontan jfontan requested review from smola, ajnavarro, erizocosmico, mcarmonaa and a team April 12, 2018 10:28
Copy link
Contributor

@ajnavarro ajnavarro left a comment

Choose a reason for hiding this comment

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

Can we add a test for this?

return
default:
i.setError(err)
close(i.done)
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to continue to the next loop iteration. Otherwise, we'll still get a panic because of the iter == nil and never get the error.

jfontan added 2 commits April 13, 2018 10:35
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
@jfontan
Copy link
Contributor Author

jfontan commented Apr 13, 2018

Added test for this case and fixed the problem pointed by @smola.

@jfontan jfontan merged commit 4e19a4a into src-d:master Apr 13, 2018
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.

6 participants