Skip to content

Commit

Permalink
fixup! errors: display more info about failed checks and policies
Browse files Browse the repository at this point in the history
  • Loading branch information
divarvel committed Nov 25, 2024
1 parent 61e5f86 commit 2d46af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biscuit-capi/tests/capi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ biscuit append error? (null)
authorizer creation error? (null)
authorizer add check error? (null)
authorizer add policy error? (null)
authorizer error(code = 21): authorization failed
authorizer error(code = 21): authorization failed: an allow policy matched (policy index: 0), and the following checks failed: [Authorizer(FailedAuthorizerCheck { check_id: 0, rule: "check if right(\"efgh\")" }), Block(FailedBlockCheck { block_id: 1, check_id: 0, rule: "check if operation(\"read\")" })]
failed checks (2):
Authorizer check 0: check if right("efgh")
Block 1, check 0: check if operation("read")
Expand Down

0 comments on commit 2d46af7

Please sign in to comment.