summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authorThijs Paelman <thijs@ouroboros.rocks>2024-01-07 12:25:05 +0100
committerSander Vrijders <sander@ouroboros.rocks>2024-01-13 10:20:14 +0100
commit67af6b4edf4fafef6a7bbf620c7b58d42a6e8155 (patch)
treec2cd1a989410821a7aa0b7d69db4a9536799a7f2 /src/irmd/main.c
parenta4c444b091d9ac9d189a7c475f68d6a51bd11ee5 (diff)
downloadouroboros-67af6b4edf4fafef6a7bbf620c7b58d42a6e8155.tar.gz
ouroboros-67af6b4edf4fafef6a7bbf620c7b58d42a6e8155.zip
irmd: Error when config not found
Error instead of warn when the --config param is set, but the file is not found. This prevents the IRMd from being in a 'half state', where it is started, but the expected config is not applied. One simply has to remove the --config option OR supply a correct filepath. Also fix compile option for the help message. Signed-off-by: Thijs Paelman <thijs@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 2de244b7..6e7e3d15 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -2763,7 +2763,7 @@ static int irm_init(void)
static void usage(void)
{
printf("Usage: irmd \n"
-#ifdef OUROBOROS_CONFIG_INI
+#ifdef HAVE_TOML
" [--config <path> (Path to configuration file)]\n"
#endif
" [--stdout (Log to stdout instead of system log)]\n"