mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
csplit: modify failure in opening file error message
This commit is contained in:
parent
96929734ea
commit
694298f0d1
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
Ok(csplit(&options, &patterns, stdin.lock())?)
|
Ok(csplit(&options, &patterns, stdin.lock())?)
|
||||||
} else {
|
} else {
|
||||||
let file = File::open(file_name)
|
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))?)
|
Ok(csplit(&options, &patterns, BufReader::new(file))?)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue