mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +00:00
stat: improved error message
This commit is contained in:
parent
97998a64dd
commit
de4cfdbea6
1 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate uucore;
|
extern crate uucore;
|
||||||
use uucore::display::Quotable;
|
use uucore::display::Quotable;
|
||||||
use uucore::error::{UResult, USimpleError};
|
use uucore::error::{FromIo, UResult, USimpleError};
|
||||||
use uucore::fs::display_permissions;
|
use uucore::fs::display_permissions;
|
||||||
use uucore::fsext::{
|
use uucore::fsext::{
|
||||||
pretty_filetype, pretty_fstype, pretty_time, read_fs_list, statfs, BirthTime, FsMeta,
|
pretty_filetype, pretty_fstype, pretty_time, read_fs_list, statfs, BirthTime, FsMeta,
|
||||||
|
@ -501,7 +501,8 @@ impl Stater {
|
||||||
// mount points aren't displayed when showing filesystem information
|
// mount points aren't displayed when showing filesystem information
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
let mut mount_list = read_fs_list()?
|
let mut mount_list = read_fs_list()
|
||||||
|
.map_err_context(|| "cannot read table of mounted file systems".into())?
|
||||||
.iter()
|
.iter()
|
||||||
.map(|mi| mi.mount_dir.clone())
|
.map(|mi| mi.mount_dir.clone())
|
||||||
.collect::<Vec<String>>();
|
.collect::<Vec<String>>();
|
||||||
|
|
Loading…
Reference in a new issue