Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Return correct error code when store is invalid (#1592)
* fix: Return correct error code when store is invalid Instead of returning `Internal` error, return `FailedPrecondition` when the requested policy has a compilation error. Fixes #1590 Signed-off-by: Charith Ellawala <charith@cerbos.dev> * Include PlanResources Signed-off-by: Charith Ellawala <charith@cerbos.dev> --------- Signed-off-by: Charith Ellawala <charith@cerbos.dev>
- Loading branch information
Showing
3 changed files
with
139 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters