summaryrefslogtreecommitdiff
path: root/lib/loader
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2023-09-29 10:51:49 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2023-09-29 10:51:49 +0200
commit04bf8770614a738736e1e64795cf88f0f763d33c (patch)
treea8d11b9690576c4e42411c89d4dc69e4a466caba /lib/loader
parent673b184cd63d851c7ffebdaf68803599cf092873 (diff)
kconfig: debug output in exception
Diffstat (limited to 'lib/loader')
-rw-r--r--lib/loader/kconfig.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/loader/kconfig.py b/lib/loader/kconfig.py
index 43d3c2f..e979ddf 100644
--- a/lib/loader/kconfig.py
+++ b/lib/loader/kconfig.py
@@ -3,9 +3,12 @@
from .. import kconfiglib
from dfatool.utils import cd
import json
+import logging
import os
import subprocess
+logger = logging.getLogger(__name__)
+
class KConfigAttributes:
def __init__(self, kconfig_path, datadir):
@@ -76,7 +79,13 @@ class KConfigAttributes:
if int(os.getenv("DFATOOL_KCONF_WITH_CHOICE_NODES", 1)):
for sym_name in self.choice_symbol_names:
- self.symbol_names.remove(sym_name)
+ try:
+ self.symbol_names.remove(sym_name)
+ except ValueError:
+ logger.error(
+ f"Trying to remove choice {sym_name}, but it is not present in the symbol list"
+ )
+ raise
self.param_names = self.symbol_names + self.choice_names
else:
self.param_names = self.symbol_names