Add error handling for parsing errors

This commit is contained in:
sharkdp
2018-10-17 20:21:58 +02:00
committed by David Peter
parent ec27c78a8a
commit 2109a7830b
2 changed files with 11 additions and 10 deletions

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;