From 010137c0e38de3e14cbfde2342994e99af372adf Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 7 Mar 2018 08:11:47 +0100 Subject: [PATCH] Added error message --- src/config.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.cpp b/src/config.cpp index 5d4c367..5421593 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -48,6 +48,7 @@ const bool read_config(rapidjson::Document &document) if (document.Parse(json.str().c_str()).HasParseError()) { + cerr << "ERROR: couldn't parse config file. Are you sure the JSON is well-formed?\n"; return false; }