bug: don't convert all oauth token verification errors to resource_unavailable (#1389)

This commit is contained in:
pennae 2022-08-30 21:15:41 +02:00 committed by GitHub
parent db037d0322
commit ebdd609ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ impl VerifyToken for Verifier {
..TokenserverError::resource_unavailable()
})?
.map_err(|e| match e {
BlockingError::Error(_) => TokenserverError::resource_unavailable(),
BlockingError::Error(inner) => inner,
BlockingError::Canceled => TokenserverError {
context: "Tokenserver threadpool operation failed".to_owned(),
..TokenserverError::internal_error()