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

1280 hets error handling for proving #1299

Merged
merged 8 commits into from
Apr 2, 2015

Conversation

eugenk
Copy link
Member

@eugenk eugenk commented Apr 1, 2015

This shall fix #1280. Hets errors are recognized and the states are updated properly.

This only handles errors in the backend. Views for errors and states are part of #1283.

In the `dg` command, hets outputs:
"*** Error:
<message>"
and in the `prove` command, hets outputs:
"*** Error: <message>"
So the `\Z` in the regexp is removed and the error message includes the
first line without the prefix "*** Error:"
The cause is set implicitly in the rescue block.
@eugenk eugenk added this to the Reasoning milestone Apr 1, 2015

it "ontology_version's last_error contains the error message" do
expect(ontology_version.reload.last_error).to include(error_message)
end
end
end
end
Copy link
Member

Choose a reason for hiding this comment

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

Lines 104-155 and 271-322 of this file are identical. Moreover, lines 48-187 and 215-355 are similar. Could this be factored out?

Copy link
Member Author

Choose a reason for hiding this comment

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

For the same reason as in #1298 I decided to have some code duplication in the specs. Again, this operates once on ontology_version and once on theorem. I can create a context for the identical parts of theorem and ontology_version, if you want me to do it.

Copy link
Member

Choose a reason for hiding this comment

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

I think this is a general question about the policy in Ontohub. I let you decide.

@tillmo
Copy link
Member

tillmo commented Apr 2, 2015

👍

eugenk added a commit that referenced this pull request Apr 2, 2015
…oving

1280 hets error handling for proving
@eugenk eugenk merged commit 807c9cd into staging Apr 2, 2015
@eugenk eugenk deleted the 1280-hets_error_handling_for_proving branch April 2, 2015 13:53
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.

Add hets error handling to proving feature
2 participants