1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-28 17:51:44 +00:00

Write error messages to pager, if attached

closes #946
This commit is contained in:
sharkdp
2020-04-25 12:25:25 +02:00
committed by David Peter
parent 3bcc4d0d55
commit 48a7ce3bf2
4 changed files with 37 additions and 10 deletions
+2 -1
View File
@@ -210,7 +210,8 @@ fn main() {
match result {
Err(error) => {
default_error_handler(&error);
let stderr = std::io::stderr();
default_error_handler(&error, &mut stderr.lock());
process::exit(1);
}
Ok(false) => {