solana-with-rpc-optimizations/ledger-tool
steviez 2a67fa8d13
ledger-tool: Condense repeated error handling (#34439)
Several commands call load_and_process_ledger() which can fail in a
number of ways. These callers currently all handle the result in the
same way by matching the return Result:
- The Ok(_) case uses the returned types as normal
- The Err(_) case prints an error message and exits

This error handling is redundant, and a helper could remove the
duplicate code. So, this PR adds a wrapper around that checks the
result and unwraps OR prints error messages and exits.
2023-12-13 14:50:20 -06:00
..
src ledger-tool: Condense repeated error handling (#34439) 2023-12-13 14:50:20 -06:00
tests Make RocksFifo storage size API expose an Option<u64> (#28192) 2022-10-04 12:38:40 -05:00
.gitignore
Cargo.toml ledger-tool: Bubble up error enum instead of eprintln!() and exit() (#34426) 2023-12-13 09:33:54 -06:00