Skip to content

Commit 9fbeaee

Browse files
authored
feat: emit unexpected verify.py exceptions to sentry (mozilla-services#1951)
making them internal vs plain unauth errors Closes STOR-370
1 parent 7bf49d7 commit 9fbeaee

File tree

1 file changed

+1
-1
lines changed
  • tokenserver-auth/src/oauth

1 file changed

+1
-1
lines changed

tokenserver-auth/src/oauth/py.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl VerifyToken for Verifier {
141141
})
142142
.map_err(|e| TokenserverError {
143143
context: format!("pyo3 error in OAuth verifier: {}", e),
144-
..TokenserverError::invalid_credentials("Unauthorized".to_owned())
144+
..TokenserverError::internal_error()
145145
})?;
146146

147147
match maybe_verify_output_string {

0 commit comments

Comments
 (0)