We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a2d34 commit 4050222Copy full SHA for 4050222
src/uu/uname/src/uname.rs
@@ -135,7 +135,8 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
135
os: matches.get_flag(options::OS),
136
};
137
let output = UNameOutput::new(&options)?;
138
- println_verbatim(output.display().as_os_str()).unwrap();
+ println_verbatim(output.display().as_os_str())
139
+ .map_err(|e| USimpleError::new(1, e.to_string()))?;
140
Ok(())
141
}
142
0 commit comments