summaryrefslogtreecommitdiff
path: root/src/util/config.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-15 21:41:09 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-15 21:41:09 +0200
commit9e92cc608932abc6caf53dce7cd96984f793f4e3 (patch)
tree13020da2136be686467e159091ebe8c8630a3b39 /src/util/config.c
parent8f0a4b6095fd05e101fc5389cc46ec211083979a (diff)
downloadexchange-9e92cc608932abc6caf53dce7cd96984f793f4e3.tar.gz
exchange-9e92cc608932abc6caf53dce7cd96984f793f4e3.tar.bz2
exchange-9e92cc608932abc6caf53dce7cd96984f793f4e3.zip
Fix #6375
Diffstat (limited to 'src/util/config.c')
-rw-r--r--src/util/config.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/util/config.c b/src/util/config.c
index 160d541f..e533a4ec 100644
--- a/src/util/config.c
+++ b/src/util/config.c
@@ -45,11 +45,21 @@ TALER_config_get_amount (const struct GNUNET_CONFIGURATION_Handle *cfg,
section,
option,
&str))
+ {
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+ section,
+ option);
return GNUNET_NO;
- if (GNUNET_OK != TALER_string_to_amount (str,
- denom))
+ }
+ if (GNUNET_OK !=
+ TALER_string_to_amount (str,
+ denom))
{
GNUNET_free (str);
+ GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
+ section,
+ option,
+ "valid amount");
return GNUNET_SYSERR;
}
GNUNET_free (str);