mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-21 09:36:28 +00:00
Ignore errors when printing to stderr
This commit is contained in:
parent
fdab33f01b
commit
da1f869b47
1 changed files with 5 additions and 1 deletions
|
@ -2,7 +2,11 @@
|
||||||
macro_rules! println_err(
|
macro_rules! println_err(
|
||||||
($($arg:tt)*) => { {
|
($($arg:tt)*) => { {
|
||||||
let r = writeln!(&mut ::std::io::stderr(), $($arg)*);
|
let r = writeln!(&mut ::std::io::stderr(), $($arg)*);
|
||||||
r.expect("failed printing to stderr");
|
// Ignore when writing fails
|
||||||
|
match r {
|
||||||
|
Ok(_) => (),
|
||||||
|
Err(_) => ()
|
||||||
|
};
|
||||||
} }
|
} }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue