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

@@ -2445,7 +2445,7 @@ void FFmpegReader::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 {
// Set all values that match
@@ -2453,7 +2453,7 @@ void FFmpegReader::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)");
}
}