mirror of
https://github.com/sharkdp/bat
synced 2026-08-06 19:21:43 +00:00
Move error handling to a callback
This commit is contained in:
+1
-1
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user