From 0d74eedc270ea0028beb39667c74c1ca3cd375ed Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Wed, 19 Aug 2026 08:41:29 +0800 Subject: [PATCH] Propagate configuration serialization errors Signed-off-by: Loren Eteval --- Furious/Interface/Process.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Furious/Interface/Process.py b/Furious/Interface/Process.py index ca2af36..e345d4d 100644 --- a/Furious/Interface/Process.py +++ b/Furious/Interface/Process.py @@ -120,9 +120,18 @@ class RuntimeKernel(ABC): return '' if not isinstance(result, str) or not result: - self.setStartError(_INVALID_CONFIGURATION_ERROR) + diagnostic = '' + serializationError = getattr(config, 'serializationError', None) - logger.error(f'configuration serializer for {self.name()} returned no JSON') + if callable(serializationError): + diagnostic = str(serializationError() or '') + + self.setStartError(diagnostic or _INVALID_CONFIGURATION_ERROR) + + logger.error( + f'configuration serializer for {self.name()} returned no JSON' + + (f': {diagnostic}' if diagnostic else '') + ) return ''