Change process_command return type and improve test

This commit is contained in:
Tyera Eulberg
2018-09-17 13:15:26 -06:00
committed by Grimes
parent 6ec0e42220
commit c2f7ca9d8f
2 changed files with 40 additions and 23 deletions

View File

@@ -134,5 +134,7 @@ fn main() -> Result<(), Box<error::Error>> {
let config = parse_args(&matches)?;
let mut client = mk_client(&config.leader);
process_command(&config, &mut client)
let result = process_command(&config, &mut client)?;
println!("{}", result);
Ok(())
}