summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-21 14:14:43 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-21 14:14:43 -0800
commit40078a99de423bb437acd2fcc1c42a9f920b0cfa (patch)
tree2f01a5fb849991d1036bfda207c570efba40f90d /service
parent2e5de46584e858b65e2f609a3d88b63e681e4e60 (diff)
downloadinfinitytier-40078a99de423bb437acd2fcc1c42a9f920b0cfa.tar.gz
infinitytier-40078a99de423bb437acd2fcc1c42a9f920b0cfa.zip
Make parse failure of local.conf non-fatal in case people have ancient files sitting around.
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index 425c8ef9..289f0cbc 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -847,16 +847,10 @@ public:
try {
_localConfig = json::parse(lcbuf);
if (!_localConfig.is_object()) {
- Mutex::Lock _l(_termReason_m);
- _termReason = ONE_UNRECOVERABLE_ERROR;
- _fatalErrorMessage = "invalid local.conf (content is not JSON object)";
- return _termReason;
+ fprintf(stderr,"WARNING: unable to parse local.conf (root element is not a JSON object)" ZT_EOL_S);
}
} catch ( ... ) {
- Mutex::Lock _l(_termReason_m);
- _termReason = ONE_UNRECOVERABLE_ERROR;
- _fatalErrorMessage = "invalid local.conf (JSON parse error)";
- return _termReason;
+ fprintf(stderr,"WARNING: unable to parse local.conf (invalid JSON)" ZT_EOL_S);
}
}