Skip to content

Commit

Permalink
csplit: modify failure in opening file error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fuad1502 committed Jan 7, 2025
1 parent 037ef74 commit 30484e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/csplit/src/csplit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
Ok(csplit(&options, &patterns, stdin.lock())?)
} else {
let file = File::open(file_name)
.map_err_context(|| format!("cannot access {}", file_name.quote()))?;
.map_err_context(|| format!("cannot open {} for reading", file_name.quote()))?;
Ok(csplit(&options, &patterns, BufReader::new(file))?)
}
}
Expand Down

0 comments on commit 30484e9

Please sign in to comment.