Clean up some error handling (#4667)
Shouldn't call exit from a library function.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user