Merge pull request #315 from ferdnyc/exception-default-args

Exceptions: Make (most) file_path args optional
This commit is contained in:
Frank Dana
2019-10-11 21:46:43 -04:00
committed by GitHub
36 changed files with 226 additions and 97 deletions

View File

@@ -2467,7 +2467,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
@@ -2475,7 +2475,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)");
}
}