mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
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:
parent
4008ce3958
commit
9439db7109
1 changed files with 4 additions and 1 deletions
|
@ -657,7 +657,10 @@ fn main() {
|
||||||
info!("exiting with guest panic");
|
info!("exiting with guest panic");
|
||||||
34
|
34
|
||||||
}
|
}
|
||||||
Ok(CommandStatus::InvalidArgs) => 35,
|
Ok(CommandStatus::InvalidArgs) => {
|
||||||
|
info!("invalid argument");
|
||||||
|
35
|
||||||
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
let exit_code = error_to_exit_code(&res);
|
let exit_code = error_to_exit_code(&res);
|
||||||
error!("exiting with error {}:{:?}", exit_code, e);
|
error!("exiting with error {}:{:?}", exit_code, e);
|
||||||
|
|
Loading…
Reference in a new issue