crosvm: Add a message on invalid argument.

If you specify a wrong parameter on concierge  there's no message and
just an exit code of 35.

BUG=b:251305451
TEST=boot with concierge.

Change-Id: I1524363f3a76345b4f09a646ae89e2f363d3200c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3935670
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Junichi Uekawa <uekawa@chromium.org>
This commit is contained in:
Junichi Uekawa 2022-10-06 09:30:07 +09:00 committed by crosvm LUCI
parent 4008ce3958
commit 9439db7109

View file

@ -657,7 +657,10 @@ fn main() {
info!("exiting with guest panic");
34
}
Ok(CommandStatus::InvalidArgs) => 35,
Ok(CommandStatus::InvalidArgs) => {
info!("invalid argument");
35
}
Err(e) => {
let exit_code = error_to_exit_code(&res);
error!("exiting with error {}:{:?}", exit_code, e);