refactor: restructure VideoUnavailable error
remove internal error types from public interface
This commit is contained in:
parent
6ab7b2415a
commit
289b1cdbf4
6 changed files with 151 additions and 106 deletions
|
|
@ -1141,7 +1141,7 @@ impl RustyPipeQuery {
|
|||
Ok(mapres.c)
|
||||
}
|
||||
Err(e) => {
|
||||
if e.should_report() {
|
||||
if e.should_report() || self.opts.report {
|
||||
create_report(Level::ERR, Some(e.to_string()), Vec::new());
|
||||
}
|
||||
Err(e.into())
|
||||
|
|
|
|||
Reference in a new issue