Exporter: Updated the logic that gives a error message (#12579)
This commit is contained in:
parent
0381116934
commit
c50a83189c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue