fix: exit code 1 on inst_wallet failure (#2225)

This commit is contained in:
Gary Yu 2018-12-25 10:37:34 +08:00 committed by GitHub
parent 12811a2445
commit 0364168572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,7 +431,7 @@ pub fn wallet_command(
let res = inst_wallet(wallet_config.clone(), &global_wallet_args, node_client);
res.unwrap_or_else(|e| {
println!("{}", e);
std::process::exit(0);
std::process::exit(1);
})
};