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

✨ output Toplevel runtime exception as Errors instead of standard output values #75

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

AlexisHamon
Copy link
Contributor

In Ocaml top-level standard versions, runtime exceptions are treated as standard values.
However, we can treat those values as exceptions for the user in order to see them with error formatting.

In this case, I colorize the runtime exceptions as errors, but we can easily switch behavior.

Example of code impacted :

exception Test;;

raise Test;;

@jbdoderlein jbdoderlein merged commit 8d77cd2 into jbdoderlein:master Mar 24, 2024
1 check failed
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