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

Better error handling #189

Merged
merged 1 commit into from
Apr 22, 2022
Merged

Better error handling #189

merged 1 commit into from
Apr 22, 2022

Conversation

pascutto
Copy link
Contributor

@pascutto pascutto commented Apr 20, 2022

This refactors the error handling to remove all the exceptions (and exception printers registrations), which were not suitable for a library usage of Gospel.
All errors now raise an Error of loc * kind, which is easy to catch and print by client libraries

@pascutto pascutto marked this pull request as ready for review April 21, 2022 12:10
@pascutto pascutto changed the title [WIP] Better error handling Better error handling Apr 21, 2022
src/Opprintast.ml Outdated Show resolved Hide resolved
src/coercion.ml Outdated Show resolved Hide resolved
src/parser_frontend.mli Outdated Show resolved Hide resolved
Copy link
Contributor

@Armael Armael left a comment

Choose a reason for hiding this comment

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

(small refactoring bug)

@pascutto pascutto merged commit 299f4b3 into ocaml-gospel:main Apr 22, 2022
@pascutto pascutto deleted the error-handling branch April 22, 2022 13:00
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