main: Print human readable error for command line error

Fixes: #367

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-04-03 10:29:19 +01:00
parent c7dfbd8a84
commit 22958261aa

View File

@ -280,7 +280,7 @@ fn start_vmm(cmd_arguments: ArgMatches) {
let vm_config = match config::VmConfig::parse(vm_params) {
Ok(config) => config,
Err(e) => {
println!("Failed parsing parameters {:?}", e);
println!("{}", e);
process::exit(1);
}
};