Skip to content

Commit 4050222

Browse files
authored
uname: remove unwrap() for > /dev/full (#10517)
1 parent e3a2d34 commit 4050222

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/uu/uname/src/uname.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
135135
os: matches.get_flag(options::OS),
136136
};
137137
let output = UNameOutput::new(&options)?;
138-
println_verbatim(output.display().as_os_str()).unwrap();
138+
println_verbatim(output.display().as_os_str())
139+
.map_err(|e| USimpleError::new(1, e.to_string()))?;
139140
Ok(())
140141
}
141142

0 commit comments

Comments
 (0)