Disable issue URLs on all timeouts (#1470)

This change helps prevent spurious bug reports.
This commit is contained in:
teor 2020-12-08 07:47:01 +10:00 committed by GitHub
parent 81d19ca196
commit 16ffb1dbbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ impl Application for ZebradApp {
color_eyre::ErrorKind::NonRecoverable(_) => true,
color_eyre::ErrorKind::Recoverable(error) => {
!error.is::<tower::timeout::error::Elapsed>()
&& !error.is::<tokio::time::error::Elapsed>()
&& !error.to_string().contains("timed out")
}
})
.install()