Merge pull request #2469 from deantvv/arch-match-gnu-error

arch: match GNU error
This commit is contained in:
Sylvestre Ledru 2021-06-30 23:10:28 +02:00 committed by GitHub
commit 2020df5dd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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