Refactor ErrUnauthorized
error handling when calling CheckAuthorization
#2593
Labels
zetacore
Issues related to ZetaCore
Describe the Issue
From discussion: #2578 (comment)
In particular we could consider directly returning the
ErrUnauthorized
error inCheckAuthorization
, return the error directly in the calling function and useErrUnauthorized
in mocks for unit testsThe text was updated successfully, but these errors were encountered: