diff options
author | MS <ms@taler.net> | 2023-12-03 17:10:20 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2023-12-03 17:10:20 +0100 |
commit | f9a43b8213173d618de84397b236e1e5a9f1368d (patch) | |
tree | 1f590396aae8bda75d697baa57d36418ad76d519 | |
parent | 98dc10df0d881c424613fdd1c553f04786d5fdab (diff) | |
download | libeufin-f9a43b8213173d618de84397b236e1e5a9f1368d.tar.gz libeufin-f9a43b8213173d618de84397b236e1e5a9f1368d.tar.bz2 libeufin-f9a43b8213173d618de84397b236e1e5a9f1368d.zip |
follow-up
-rw-r--r-- | nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt index 176247d0..fcc469c2 100644 --- a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt +++ b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt @@ -582,8 +582,7 @@ class EbicsFetch: CliktCommand("Fetches bank records. Defaults to camt.054 noti val cfg: EbicsSetupConfig = doOrFail { extractEbicsConfig(configFile) } - // Fail now if keying is incomplete. - if (!isKeyingComplete(cfg)) exitProcess(1) + val dbCfg = cfg.config.extractDbConfigOrFail() val db = Database(dbCfg.dbConnStr) @@ -657,6 +656,8 @@ class EbicsFetch: CliktCommand("Fetches bank records. Defaults to camt.054 noti return } + // Fail now if keying is incomplete. + if (!isKeyingComplete(cfg)) exitProcess(1) val bankKeys = loadBankKeys(cfg.bankPublicKeysFilename) ?: exitProcess(1) if (!bankKeys.accepted && !import && !parse) { logger.error("Bank keys are not accepted, yet. Won't fetch any records.") |