feat(execution_layer): log more detail when JWT auth fails (#9051)

Co-Authored-By: CATS <dev@yaksha3.ai>

Co-Authored-By: chonghe <44791194+chong-he@users.noreply.github.com>
This commit is contained in:
CATS
2026-04-09 07:54:10 +02:00
committed by GitHub
parent 4b297c6ce8
commit b95f99f130
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ impl From<reqwest::Error> for Error {
e.status(),
Some(StatusCode::UNAUTHORIZED) | Some(StatusCode::FORBIDDEN)
) {
Error::Auth(auth::Error::InvalidToken)
Error::Auth(auth::Error::InvalidToken(e.to_string()))
} else {
Error::HttpClient(e.into())
}

View File

@@ -14,7 +14,7 @@ pub const JWT_SECRET_LENGTH: usize = 32;
#[derive(Debug)]
pub enum Error {
JWT(jsonwebtoken::errors::Error),
InvalidToken,
InvalidToken(String),
InvalidKey(String),
}