1
0
Fork 1
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:
Newbyte 2025-05-21 14:01:08 +02:00
parent aebf99e988
commit 3bca389f4c
No known key found for this signature in database
GPG key ID: ACD854892B38D898

View file

@ -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."