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

Do not display a backtrace when exiting normally #399

Merged

Conversation

emillon
Copy link
Collaborator

@emillon emillon commented Sep 15, 2022

Exiting normally here refers to the Exit_with_status exception. It is in particular triggered by #quit;; so we want to exit quietly in that case.

Closes #398

@emillon emillon requested a review from rgrinberg as a code owner September 15, 2022 13:57
@emillon emillon force-pushed the exit-with-status-no-backtrace branch from 0981035 to 8243309 Compare September 15, 2022 13:58
@emillon
Copy link
Collaborator Author

emillon commented Sep 15, 2022

Not 100% it's always the right move, so I'm giving it a bit of time for discussion.

Exiting normally here refers to the `Exit_with_status` exception.
It is in particular triggered by `#quit;;` so we want to exit quietly
in that case.

Closes ocaml-community#398
@emillon emillon force-pushed the exit-with-status-no-backtrace branch from 8243309 to 3944784 Compare January 5, 2023 13:26
@emillon emillon merged commit 5aae06f into ocaml-community:master Jan 5, 2023
@emillon emillon deleted the exit-with-status-no-backtrace branch January 5, 2023 14:23
emillon added a commit to emillon/opam-repository that referenced this pull request Jan 5, 2023
CHANGES:

* Bump the compatibility to 4.08+ (ocaml-community/utop#393 @emillon)
* Load `@toplevel_printer` annotated printers for functors (ocaml-community/utop#378 @metavinek)
* Do not display a backtrace when exiting normally (ocaml-community/utop#399 ocaml-community/utop#398 @emillon)
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.

UTop exits reporting an exception after requiring core
1 participant