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

fix: ReplacementVisitor doesn't eat exceptions #2258

Merged
merged 1 commit into from
Jul 22, 2018

Conversation

pvojtechovsky
Copy link
Collaborator

@pvojtechovsky pvojtechovsky commented Jul 21, 2018

I had hard time to found a reason for a strange problem ... until I found that ReplacementVisitor eats exceptions.

May be before there was not much code running in scope of this exception block, but now with integrated Change collector and sniper mode, there makes sense to report exceptions, which happens here.

@monperrus, do you have any idea why it was caught and ignored?

@pvojtechovsky pvojtechovsky changed the title WIP: fix: ReplacementVisitor doesn't eat exceptions fix: ReplacementVisitor doesn't eat exceptions Jul 21, 2018
@tdurieux
Copy link
Collaborator

Personally I don't remember why. It was probably because of invalid call but we should definitely handle this case

@surli surli merged commit 07cc28a into INRIA:master Jul 22, 2018
@pvojtechovsky pvojtechovsky deleted the fixReplacementExceptionHandling branch July 22, 2018 15:43
@monperrus monperrus mentioned this pull request Sep 20, 2018
4 tasks
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.

3 participants