aboutsummaryrefslogtreecommitdiff
path: root/src/kyclogic
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-07-19 11:13:18 +0200
committerChristian Grothoff <christian@grothoff.org>2024-07-29 12:18:46 +0200
commit2ecfc99e7a9ec090179a051066431c4e2ebde9f5 (patch)
tree5e53cd4fa6481af7fec45604a4a2803eb20d5fac /src/kyclogic
parent4e595a51d60ef252c94be2c2fce875290a423740 (diff)
more parsing, config template
Diffstat (limited to 'src/kyclogic')
-rw-r--r--src/kyclogic/kyclogic_api.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c
index 5e694cecf..f3e244af0 100644
--- a/src/kyclogic/kyclogic_api.c
+++ b/src/kyclogic/kyclogic_api.c
@@ -1345,6 +1345,7 @@ add_check (const struct GNUNET_CONFIGURATION_Handle *cfg,
"FALLBACK",
&fallback))
{
+ /* FIXME: Allow NULL to fall back to default rules? */
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
section,
"FALLBACK");
@@ -1696,6 +1697,7 @@ add_program (const struct GNUNET_CONFIGURATION_Handle *cfg,
"FALLBACK",
&fallback))
{
+ /* FIXME: Allow NULL to fall back to default rules? */
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
section,
"FALLBACK",
@@ -1809,10 +1811,9 @@ add_measure (const struct GNUNET_CONFIGURATION_Handle *cfg,
"CHECK_NAME",
&check_name))
{
- GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
section,
- "CHECK_NAME",
- "check name required");
+ "CHECK_NAME");
goto fail;
}
if (GNUNET_OK !=
@@ -1821,10 +1822,9 @@ add_measure (const struct GNUNET_CONFIGURATION_Handle *cfg,
"PROGRAM",
&program))
{
- GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
section,
- "PROGRAM",
- "program name required");
+ "PROGRAM");
goto fail;
}
if (GNUNET_OK !=
@@ -1833,10 +1833,9 @@ add_measure (const struct GNUNET_CONFIGURATION_Handle *cfg,
"CONTEXT",
&context_str))
{
- GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
section,
- "CONTEXT",
- "context required");
+ "CONTEXT");
goto fail;
}
context = json_loads (context_str,
@@ -1847,7 +1846,7 @@ add_measure (const struct GNUNET_CONFIGURATION_Handle *cfg,
{
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
section,
- "COMMAND",
+ "CONTEXT",
err.text);
goto fail;
}