You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
src: Don't pass "" file_path args to exceptions
This commit is contained in:
@@ -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)");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user