Skip to content

Commit e157454

Browse files
committed
Fix error
1 parent 5166931 commit e157454

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/subset.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ pub fn subset_matrix(
2424
let is_directory = input.as_ref().map_or(false, |path| Path::new(path).is_dir());
2525

2626
if rownames || colnames {
27-
if is_directory {
28-
return Err("Input must be a file when using names".into());
27+
if !is_directory {
28+
return Err("Input must be a directory when using names".into());
2929
}
3030
}
3131

0 commit comments

Comments
 (0)