-
Notifications
You must be signed in to change notification settings - Fork 203
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
Refactor witness output interpretation #982
Conversation
In order to make it easier to understand the output of the witness linter we sepparate the exception case from the case where there was no output
Does |
If witnesslint exited successfully, the last line will always contain |
It is a decision of the tool maintainer what to do here, but I personally would find the "usually" too weak here. Nothing worse during debugging than some output that leads you in the wrong direction. In CPAchecker's tool-info module, for example, we return Btw.: I just noticed the |
Unknown should only be returned if the tool voluntarily gave up, which is not the case here
…ption We should only return exceptions when we are sure that an exception has occured. If it is only the case that the linter did not finish successfully we should return an error
Thank you very much for your comments. I tried to address both concerns with the last two commits by returning an Error per default and splitting the error that witnesslint did not finish from the case where we know there has been an exception. |
In order to make it easier to understand the output of the witness linter we sepparate the exception case from the case where there was no output