From 31928fb1038da25d172e1febf325463050e66305 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 7 Apr 2020 10:47:43 +0100 Subject: [PATCH] main: Consistently use eprintln!() for error messages Signed-off-by: Rob Bradford --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9ecf06c2a..b512ac59b 100755 --- a/src/main.rs +++ b/src/main.rs @@ -305,7 +305,7 @@ fn start_vmm(cmd_arguments: ArgMatches) { ) { Ok(t) => t, Err(e) => { - println!("Failed spawning the VMM thread {:?}", e); + eprintln!("Failed spawning the VMM thread {:?}", e); process::exit(1); } }; @@ -317,7 +317,7 @@ fn start_vmm(cmd_arguments: ArgMatches) { let vm_config = match config::VmConfig::parse(vm_params) { Ok(config) => config, Err(e) => { - println!("{}", e); + eprintln!("{}", e); process::exit(1); } }; @@ -362,12 +362,12 @@ fn start_vmm(cmd_arguments: ArgMatches) { Ok(res) => match res { Ok(_) => (), Err(e) => { - println!("VMM thread failed {:?}", e); + eprintln!("VMM thread failed {:?}", e); process::exit(1); } }, Err(e) => { - println!("Could not joing VMM thread {:?}", e); + eprintln!("Could not join VMM thread {:?}", e); process::exit(1); } }