mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
csplit: modify failure in opening file error message
This commit is contained in:
committed by
Daniel Hofstetter
parent
96929734ea
commit
694298f0d1
@@ -585,7 +585,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))?)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user