mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 20:19:07 +00:00
crosvm: Better error message
Prints only compiled-in options BUG=b:227659915 TEST=presubmit Change-Id: If58013fc0d0387237da0c4ab0677efcd317a6fed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3649737 Commit-Queue: Vikram Auradkar <auradkar@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
9c2fe689b7
commit
ec482840b9
1 changed files with 3 additions and 0 deletions
|
@ -289,7 +289,10 @@ fn parse_gpu_options(s: Option<&str>, gpu_params: &mut GpuParameters) -> argumen
|
|||
return Err(argument::Error::InvalidValue {
|
||||
value: v.to_string(),
|
||||
expected: String::from(
|
||||
#[cfg(feature = "gfxstream")]
|
||||
"gpu parameter 'backend' should be one of (2d|virglrenderer|gfxstream)",
|
||||
#[cfg(not(feature = "gfxstream"))]
|
||||
"gpu parameter 'backend' should be one of (2d|3d)",
|
||||
),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue