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

Improve printing of fatal errors #1739

Merged
merged 2 commits into from
Jan 7, 2019
Merged

Conversation

rgrinberg
Copy link
Member

Currently, some fatal errors aren't printed because things fail before the
printers are all registered. This PR registers the printers as early as
possible. This way, all exceptions are properly printed.

Signed-off-by: Rudi Grinberg [email protected]

Currently, some fatal errors aren't printed because things fail before the
printers are all registered. This PR registers the printers as early as
possible. This way, all exceptions are properly printed.

Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg
Copy link
Member Author

rgrinberg commented Jan 7, 2019

@emillon I moved excerpt printing to the Loc module as well. It's bound to be useful in other places.

@rgrinberg rgrinberg merged commit edbbf96 into ocaml:master Jan 7, 2019
@rgrinberg rgrinberg deleted the always-print-exn branch January 7, 2019 18:28
@rgrinberg rgrinberg restored the always-print-exn branch April 20, 2019 05:44
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