kconfig check: use NonBugError (MR 2384)

Don't print a trace if kconfig check fails.
This commit is contained in:
Oliver Smith 2024-07-28 15:54:08 +02:00
parent f1afdeaaa1
commit 5e9c1601f2
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -4,6 +4,7 @@
from __future__ import annotations
from pmb import commands
from pmb.core.context import get_context
from pmb.helpers.exceptions import NonBugError
import pmb.parse.kconfig
import pmb.helpers.git
import pmb.config
@ -58,7 +59,7 @@ class KConfigCheck(commands.Command):
# At least one failure
if error:
raise RuntimeError("kconfig check failed!")
raise NonBugError("kconfig check failed!")
else:
if skipped:
logging.info(