Move error handling to a callback

This commit is contained in:
sharkdp authored and David Peter committed 2020-03-21 22:21:23 +01:00
1 parent a7338e2ea2
commit fc1ca0875a
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ error_chain! {
}
}
pub fn handle_error(error: &Error) {
pub fn default_error_handler(error: &Error) {
match error {
Error(ErrorKind::Io(ref io_error), _)
if io_error.kind() == ::std::io::ErrorKind::BrokenPipe =>