forked from Mirror/pmbootstrap
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. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2603
This commit is contained in:
parent
226eeed6ff
commit
0d672a7dc7
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