ape: Improve error messages in ape service #919

Merged
fyrchik merged 1 commit from aarifullin/frostfs-node:feature/ape_errors into master 2024-01-23 08:11:26 +00:00

1 commit

Author SHA1 Message Date
19937c67f8 [#919] ape: Improve error messages in ape service
All checks were successful
Vulncheck / Vulncheck (pull_request) Successful in 4m31s
Build / Build Components (1.20) (pull_request) Successful in 7m36s
DCO action / DCO (pull_request) Successful in 7m32s
Build / Build Components (1.21) (pull_request) Successful in 7m47s
Tests and linters / Staticcheck (pull_request) Successful in 9m5s
Tests and linters / Tests with -race (pull_request) Successful in 9m31s
Tests and linters / Tests (1.21) (pull_request) Successful in 9m44s
Tests and linters / Tests (1.20) (pull_request) Successful in 9m58s
Tests and linters / Lint (pull_request) Successful in 2m59s
* Wrap all APE middleware errors in apeErr that
  makes errors more explicit with status AccessDenied.
* Use denyingRuleErr for denying status from chain router.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-01-19 11:03:51 +03:00