summaryrefslogtreecommitdiffstats
path: root/PICA_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'PICA_node.c')
-rwxr-xr-xPICA_node.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/PICA_node.c b/PICA_node.c
index 3310bb7..763b394 100755
--- a/PICA_node.c
+++ b/PICA_node.c
@@ -2412,9 +2412,12 @@ int main(int argc,char** argv)
process_cmdline(argc, argv);
-nodecfg.config_file = (nodecfg.config_file ? nodecfg.config_file : "/etc/pica-node.conf");
+nodecfg.config_file = (nodecfg.config_file ? nodecfg.config_file :PICA_NODECONFIG_DEF_CONFIG_FILE);
-PICA_nodeconfig_load(nodecfg.config_file);
+if (!PICA_nodeconfig_load(nodecfg.config_file))
+ {
+ PICA_fatal("Unable to load configuration. Please check if config file %s exists and has correct permissions", nodecfg.config_file);
+ }
PICA_debug1("nodecfg.config_file = %s", nodecfg.config_file);
PICA_debug1("nodecfg.announced_addr = %s",nodecfg.announced_addr);