Clean up some error handling (#4667)

Shouldn't call exit from a library function.
This commit is contained in:
sakridge
2019-06-12 15:01:59 -07:00
committed by GitHub
parent 8e86014311
commit c1f316721a
2 changed files with 21 additions and 9 deletions

View File

@@ -90,6 +90,10 @@ fn main() {
tx_count,
NUM_LAMPORTS_PER_ACCOUNT,
)
.unwrap_or_else(|e| {
eprintln!("Error could not fund keys: {:?}", e);
exit(1);
})
};
let config = Config {