-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework how
--debug
is handled in main
Move the `run` call into a wrapper function and inline the exception handling while moving the try-finally around `run` into the nested function. This reduces the amount of code at a deeper nesting level and moves the self-version-check logic into the "around the run" exception catching so that a consistent message is presented in cases of failures.
- Loading branch information
Showing
1 changed file
with
59 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters