mirror of
https://github.com/uutils/coreutils
synced 2024-10-15 12:24:09 +00:00
Merge pull request #2469 from deantvv/arch-match-gnu-error
arch: match GNU error
This commit is contained in:
commit
2020df5dd7
|
@ -21,7 +21,7 @@ static SUMMARY: &str = "Determine architecture name for current machine.";
|
|||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
uu_app().get_matches_from(args);
|
||||
|
||||
let uts = PlatformInfo::new().map_err_context(|| "arch: ".to_string())?;
|
||||
let uts = PlatformInfo::new().map_err_context(|| "cannot get system name".to_string())?;
|
||||
println!("{}", uts.machine().trim());
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue