commit 9c397a6eb67ea622717db570f900a806c18a6553
parent 6116a02d050ae090d425f85eed920ade6a8d8033
Author: Antoine A <>
Date: Tue, 22 Jul 2025 10:02:02 +0200
common: fix config error message
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/common/src/main/kotlin/TalerConfig.kt b/common/src/main/kotlin/TalerConfig.kt
@@ -419,8 +419,11 @@ class TalerConfigOption<T> internal constructor(
return section.transform(raw)
} catch (e: ValueError) {
throw TalerConfigError.invalid(type, section.section, option, e.msg)
+ } catch (e: Exception) {
+ throw TalerConfigError.invalid(type, section.section, option, e.message ?: e.toString())
}
}
+
/** Converted value or null if missing, log a warning if missing */
fun orNull(logger: Logger, warn: String): T? {
val value = orNull()