Skip to content
Snippets Groups Projects
Unverified Commit 8c55680b authored by Newbyte's avatar Newbyte :snowflake: Committed by Oliver Smith
Browse files

pmb.flasher.frontend: Use NonBugError for nonexistent rootfs code path (MR 2540)

We fully expect to reach this code path within normal use of
pmbootstrap. It's not a bug if we get here. As such, use NonBugError to
indicate that and clean up the output.
parent 3ef25e14
Branches
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ from __future__ import annotations
from pmb.core.context import get_context
from pmb.helpers import logging
from pmb.helpers.exceptions import NonBugError
import pmb.config
from pmb.parse.deviceinfo import Deviceinfo
......@@ -92,7 +93,7 @@ def rootfs(
img_path = Chroot.native() / "home/pmos/rootfs" / f"{deviceinfo.codename}{suffix}"
if not img_path.exists():
raise RuntimeError(
raise NonBugError(
"The rootfs has not been generated yet, please run 'pmbootstrap install' first."
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment