error.rs: Corrected error message to say unexpected scope. #497

Merged
lx merged 1 commit from jpds/garage:authorization-header-unexpected-scope into main 2023-02-03 13:22:41 +00:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 1b6ec74748 - Show all commits

View file

@ -19,7 +19,7 @@ pub enum Error {
// Category: cannot process // Category: cannot process
/// Authorization Header Malformed /// Authorization Header Malformed
#[error(display = "Authorization header malformed, expected scope: {}", _0)] #[error(display = "Authorization header malformed, unexpected scope: {}", _0)]
AuthorizationHeaderMalformed(String), AuthorizationHeaderMalformed(String),
/// The object requested don't exists /// The object requested don't exists

View file

@ -21,7 +21,7 @@ pub enum Error {
// Category: cannot process // Category: cannot process
/// Authorization Header Malformed /// Authorization Header Malformed
#[error(display = "Authorization header malformed, expected scope: {}", _0)] #[error(display = "Authorization header malformed, unexpected scope: {}", _0)]
AuthorizationHeaderMalformed(String), AuthorizationHeaderMalformed(String),
/// The object requested don't exists /// The object requested don't exists

View file

@ -11,7 +11,7 @@ pub enum Error {
Common(CommonError), Common(CommonError),
/// Authorization Header Malformed /// Authorization Header Malformed
#[error(display = "Authorization header malformed, expected scope: {}", _0)] #[error(display = "Authorization header malformed, unexpected scope: {}", _0)]
AuthorizationHeaderMalformed(String), AuthorizationHeaderMalformed(String),
// Category: bad request // Category: bad request