log also exception text

This commit is contained in:
Peter Bieringer
2026-05-12 08:32:31 +02:00
parent b9ec1c223f
commit 5a1f6cbd02

View File

@@ -934,8 +934,7 @@ class Configuration:
except Exception as e:
raise RuntimeError(
"Invalid %s value for option %r in section %r in %s: "
"%r" % (type_.__name__, option, section, source,
raw_value)) from e
"%r (%s)" % (type_.__name__, option, section, source, raw_value, e)) from e
self._configs.append((config, source, bool(privileged)))
for section in new_values:
self._values[section] = self._values.get(section, {})