docs: standardise error types and error codes (#432)

This commit is contained in:
bernard-eugine
2023-01-31 16:46:51 +05:30
committed by GitHub
parent 010aff5f4c
commit 3dfd548cb8
4 changed files with 88 additions and 90 deletions

View File

@ -236,7 +236,7 @@ pub async fn is_ephemeral_auth(
.change_context(errors::ApiErrorResponse::Unauthorized)?;
if ephemeral_key.customer_id.ne(customer_id) {
return Err(report!(errors::ApiErrorResponse::InvalidEphermeralKey));
return Err(report!(errors::ApiErrorResponse::InvalidEphemeralKey));
}
Ok(Box::new(MerchantIdAuth(ephemeral_key.merchant_id)))