Add error handling for parsing errors

This commit is contained in:
sharkdp authored and David Peter committed 2018-10-17 21:08:32 +02:00
1 parent ec27c78a8a
commit 2109a7830b
2 files changed
+11 -10

No files matched your search

+1 -1
View File
@@ -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;