From 0d672a7dc791137f306dfe2d35122b34bdfeee23 Mon Sep 17 00:00:00 2001 From: Newbyte Date: Wed, 21 May 2025 14:01:08 +0200 Subject: [PATCH] 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 --- pmb/qemu/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/qemu/run.py b/pmb/qemu/run.py index 527dd729..a03908f5 100644 --- a/pmb/qemu/run.py +++ b/pmb/qemu/run.py @@ -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."