crosvm: fix run_vm return values for plugin

BUG=none
TEST=crosvm builds with plugin enabled

Change-Id: Ic54550e59d3d3b0e7b09cd3f18496ca790d29f7d
Reviewed-on: https://chromium-review.googlesource.com/922281
Commit-Ready: Stephen Barber <smbarber@chromium.org>
Tested-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
Stephen Barber 2018-02-15 09:22:22 -08:00 committed by chrome-bot
parent 8091a2a525
commit ee0d67cc5e

View file

@ -378,10 +378,13 @@ fn run_vm(args: std::env::Args) -> std::result::Result<(), ()> {
#[cfg(feature = "plugin")]
Ok(()) if cfg.plugin.is_some() => {
match plugin::run_config(cfg) {
Ok(_) => info!("crosvm and plugin have exited normally"),
Ok(_) => {
info!("crosvm and plugin have exited normally");
Ok(())
}
Err(e) => {
error!("{}", e);
return 1;
Err(())
}
}
}