From db7b686073d854263b5866deca1484d323fd301d Mon Sep 17 00:00:00 2001 From: Roy Blankman Date: Tue, 18 Sep 2018 17:59:41 -0400 Subject: [PATCH] Exit code 1 on `wallet send` fail (#1550) Fixes #1504 --- src/bin/grin.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/grin.rs b/src/bin/grin.rs index 0c33d16ba..2d3cd4b6d 100644 --- a/src/bin/grin.rs +++ b/src/bin/grin.rs @@ -39,6 +39,8 @@ extern crate grin_wallet; mod cmd; pub mod tui; +use std::process::exit; + use clap::{App, Arg, SubCommand}; use config::config::{SERVER_CONFIG_FILE_NAME, WALLET_CONFIG_FILE_NAME}; @@ -355,7 +357,7 @@ fn main() { if let ("init", Some(_)) = wallet_args.subcommand() { } else { println!("Wallet seed file doesn't exist. Run `grin wallet -p [password] init` first"); - return; + exit(1); } } let mut l = w.members.as_mut().unwrap().logging.clone().unwrap();