mirror of
https://github.com/sharkdp/bat
synced 2026-07-30 18:11:44 +00:00
Move error handling to a callback
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ fn main() {
|
||||
|
||||
match result {
|
||||
Err(error) => {
|
||||
handle_error(&error);
|
||||
default_error_handler(&error);
|
||||
process::exit(1);
|
||||
}
|
||||
Ok(false) => {
|
||||
|
||||
Reference in New Issue
Block a user