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

Embed JVMSetupError inside TopLevelException datatype. #1075

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

brianhuffman
Copy link
Contributor

This means that JVMSetupError exceptions can now be caught by
the standard TopLevelException handlers, and get shown with
the expected stack traces in the saw-script REPL.

This is done using a new existentially-typed SomeTopLevelException
constructor, as recommended by the Control.Exception documentation.

Fixes #1021.

@brianhuffman brianhuffman requested a review from chameco February 15, 2021 00:41
@brianhuffman brianhuffman added the PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run label Feb 15, 2021
@brianhuffman brianhuffman requested a review from atomb February 15, 2021 22:14
@brianhuffman brianhuffman added the PR: keep updated Magic flag for pull requests to ask Mergify to merge head into the PR branch for you label Feb 17, 2021
@brianhuffman brianhuffman removed the PR: keep updated Magic flag for pull requests to ask Mergify to merge head into the PR branch for you label Feb 17, 2021
This means that JVMSetupError exceptions can now be caught by
the standard TopLevelException handlers, and get shown with
the expected stack traces in the saw-script REPL.

This is done using a new existentially-typed `SomeTopLevelException`
constructor, as recommended by the Control.Exception documentation.

Fixes #1021.
Copy link
Contributor

@atomb atomb left a comment

Choose a reason for hiding this comment

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

This looks great. Thanks for doing it!

@mergify mergify bot merged commit 6ca56b5 into master Mar 1, 2021
@mergify mergify bot deleted the jvm-setup-error branch March 1, 2021 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JVMSetup errors don't print source location
2 participants