-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ledger-tool: Bubble up error enum instead of eprintln!() and exit() (#…
…34426) load_and_process_ledger() performs many checks and sub-operations that can fail. The current error handling prints an error message and exits immediately. The long error/help messages written inline add clutter to the functions actual implementation. This PR creates a new error enum for all of these previous error conditions, and bubbles up the error to let the caller decide what to do instead of exiting immediately.
- Loading branch information
steviez
authored
Dec 13, 2023
1 parent
d836cf1
commit 48046b6
Showing
3 changed files
with
74 additions
and
44 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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