Exporter: Updated the logic that gives a error message (#12579)

This commit is contained in:
michiel2005 2023-08-06 15:19:51 +02:00 committed by GitHub
parent 0381116934
commit c50a83189c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -418,6 +418,8 @@ fn main() -> Result<()> {
if opt.swf.is_file() {
capture_single_swf(descriptors, &opt)?;
} else if !opt.swf.is_dir() {
return Err(anyhow!("Given path is not a file or directory."));
} else if opt.output_path.is_some() {
capture_multiple_swfs(descriptors, &opt)?;
} else {