use fmt::Display in die_with_io_error printing

This commit is contained in:
Robert Habermeier 2016-05-22 12:43:21 -04:00
parent 5d997ef099
commit 1251315b28

View File

@ -49,7 +49,7 @@ pub fn die_with_io_error(module: &'static str, e: std::io::Error) -> ! {
std::io::ErrorKind::AddrNotAvailable => {
die!("{}: Could not use specified interface or given address is invalid.", module)
},
_ => die!("{}: {:?}", module, e),
_ => die!("{}: {}", module, e),
}
}