1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

arch: match GNU error

Follow up for #2466 as suggested by @miDeb
This commit is contained in:
Dean Li 2021-06-30 22:29:28 +08:00
parent 01f687f09f
commit b21e01bcb0
No known key found for this signature in database
GPG key ID: 4F55BB69D480672A

View file

@ -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(())
}