Skip to content

Commit

Permalink
feat: added ErrorKind::IsADirectory to --file-list (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeF0x authored Feb 18, 2025
1 parent 316eb58 commit 3cf18ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ fn main() {
eprintln!("The contents of {input_file_path} contain invalid data. Please make sure it is encoded as UTF-8.");
exit(1);
}
ErrorKind::IsADirectory => {
eprintln!("The path {input_file_path} is a directory.");
exit(1);
}
_ => {
eprintln!("An error has occurred reading the file at path {input_file_path}: {:?}.", err);
exit(1);
Expand Down

0 comments on commit 3cf18ec

Please sign in to comment.