summaryrefslogtreecommitdiffstats
path: root/src/ahl-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ahl-config.c')
-rw-r--r--src/ahl-config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ahl-config.c b/src/ahl-config.c
index 168311e..5e3de08 100644
--- a/src/ahl-config.c
+++ b/src/ahl-config.c
@@ -48,6 +48,12 @@ int ParseHLBConfig() {
// TODO: This should be retrieve from binding startup arguments
char configfile_path[256];
+ if(getenv("AHL_CONFIG_FILE") == NULL)
+ {
+ AFB_ERROR("Please Set Environnement Variable AHL_CONFIG_FILE");
+ return 1;
+ }
+
sprintf(configfile_path, "%s", getenv("AHL_CONFIG_FILE"));
AFB_INFO("High-level config file -> %s\n", configfile_path);