src: Don't pass "" file_path args to exceptions

This commit is contained in:
FeRD (Frank Dana)
2019-08-27 15:47:39 -04:00
parent 49749d52c2
commit 366ff2c5e6
20 changed files with 49 additions and 49 deletions

View File

@@ -230,7 +230,7 @@ void TextReader::SetJson(string value) {
if (!success)
// Raise exception
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
throw InvalidJSON("JSON could not be parsed (or is invalid)");
try
{
@@ -240,7 +240,7 @@ void TextReader::SetJson(string value) {
catch (const std::exception& e)
{
// Error parsing JSON (or missing keys)
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
}
}