Added error message
This commit is contained in:
parent
1142f6749a
commit
010137c0e3
|
@ -48,6 +48,7 @@ const bool read_config(rapidjson::Document &document)
|
||||||
|
|
||||||
if (document.Parse(json.str().c_str()).HasParseError())
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue