mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-12 19:09:56 +03:00
pmb.qemu.run: Use NonBugError for invalid device selection error
This eliminates all noise and results in an output that only contains the actual relevant and helpful error message.
This commit is contained in:
parent
aebf99e988
commit
3bca389f4c
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ def run(args: PmbArgs) -> None:
|
|||
config = get_context().config
|
||||
device = config.device
|
||||
if not device.startswith("qemu-"):
|
||||
raise RuntimeError(
|
||||
raise NonBugError(
|
||||
"'pmbootstrap qemu' can be only used with one of "
|
||||
"the QEMU device packages. Run 'pmbootstrap init' "
|
||||
"and select the 'qemu' vendor."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue