mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Add error handling for parsing errors
This commit is contained in:
1 parent
ec27c78a8a
commit
2109a7830b
2 files changed
+11
-10
No files matched your search
+1
-1
@@ -19,7 +19,7 @@ impl<'b> Controller<'b> {
|
||||
}
|
||||
|
||||
pub fn run(&self) -> Result<bool> {
|
||||
let mut output_type = OutputType::from_mode(self.config.paging_mode);
|
||||
let mut output_type = OutputType::from_mode(self.config.paging_mode)?;
|
||||
let writer = output_type.handle()?;
|
||||
let mut no_errors: bool = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user