commit b09e712de580cd04e9d32ea6bb7249fbb8686f34 parent ae80d1c867465365451ea683667728b277d1fb91 Author: MS <ms@taler.net> Date: Sat, 28 Oct 2023 11:25:23 +0200 make error message more expressive Diffstat:
| M | nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt @@ -331,10 +331,12 @@ class EbicsSetup: CliktCommand("Set up the EBICS subscriber") { if (checkFullConfig) { doOrFail { cfg.config.requireString("nexus-ebics-submit", "frequency").apply { - checkFrequency(this) + if (getFrequencyInSeconds(this) == null) + throw Exception("frequency value of nexus-ebics-submit section is not valid: $this") } cfg.config.requireString("nexus-ebics-fetch", "frequency").apply { - checkFrequency(this) + if (getFrequencyInSeconds(this) == null) + throw Exception("frequency value of nexus-ebics-fetch section is not valid: $this") } cfg.config.requirePath("nexus-ebics-fetch", "statement_log_directory") cfg.config.requireNumber("nexus-httpd", "port")