Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miette integration for all errors in Core, Validator, and cedar-policy #477

Merged
merged 14 commits into from
Dec 8, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: record does not have the attribute `f`. Available attributes: [\"\"]"
"while evaluating policy `policy0`: record does not have the attribute `f`"
]
},
{
Expand All @@ -47,7 +47,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: record does not have the attribute `f`. Available attributes: [\"\"]"
"while evaluating policy `policy0`: record does not have the attribute `f`"
]
},
{
Expand All @@ -70,7 +70,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: record does not have the attribute `f`. Available attributes: [\"\"]"
"while evaluating policy `policy0`: record does not have the attribute `f`"
]
},
{
Expand All @@ -93,7 +93,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: record does not have the attribute `f`. Available attributes: [\"\"]"
"while evaluating policy `policy0`: record does not have the attribute `f`"
]
},
{
Expand All @@ -116,7 +116,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: record does not have the attribute `f`. Available attributes: [\"\"]"
"while evaluating policy `policy0`: record does not have the attribute `f`"
]
},
{
Expand All @@ -139,7 +139,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: record does not have the attribute `f`. Available attributes: [\"\"]"
"while evaluating policy `policy0`: record does not have the attribute `f`"
]
},
{
Expand All @@ -162,7 +162,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: record does not have the attribute `f`. Available attributes: [\"\"]"
"while evaluating policy `policy0`: record does not have the attribute `f`"
]
},
{
Expand All @@ -185,7 +185,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: record does not have the attribute `f`. Available attributes: [\"\"]"
"while evaluating policy `policy0`: record does not have the attribute `f`"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected ipaddr, got string. Maybe you forgot to apply the `ip` constructor?"
"while evaluating policy `policy0`: type error: expected ipaddr, got string"
]
},
{
Expand All @@ -43,7 +43,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected ipaddr, got string. Maybe you forgot to apply the `ip` constructor?"
"while evaluating policy `policy0`: type error: expected ipaddr, got string"
]
},
{
Expand All @@ -64,7 +64,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected ipaddr, got string. Maybe you forgot to apply the `ip` constructor?"
"while evaluating policy `policy0`: type error: expected ipaddr, got string"
]
},
{
Expand All @@ -85,7 +85,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected ipaddr, got string. Maybe you forgot to apply the `ip` constructor?"
"while evaluating policy `policy0`: type error: expected ipaddr, got string"
]
},
{
Expand All @@ -106,7 +106,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected ipaddr, got string. Maybe you forgot to apply the `ip` constructor?"
"while evaluating policy `policy0`: type error: expected ipaddr, got string"
]
},
{
Expand All @@ -127,7 +127,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected ipaddr, got string. Maybe you forgot to apply the `ip` constructor?"
"while evaluating policy `policy0`: type error: expected ipaddr, got string"
]
},
{
Expand All @@ -148,7 +148,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected ipaddr, got string. Maybe you forgot to apply the `ip` constructor?"
"while evaluating policy `policy0`: type error: expected ipaddr, got string"
]
},
{
Expand All @@ -169,7 +169,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected ipaddr, got string. Maybe you forgot to apply the `ip` constructor?"
"while evaluating policy `policy0`: type error: expected ipaddr, got string"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected decimal, got string. Maybe you forgot to apply the `decimal` constructor?"
"while evaluating policy `policy0`: type error: expected decimal, got string"
]
},
{
Expand All @@ -43,7 +43,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected decimal, got string. Maybe you forgot to apply the `decimal` constructor?"
"while evaluating policy `policy0`: type error: expected decimal, got string"
]
},
{
Expand All @@ -64,7 +64,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected decimal, got string. Maybe you forgot to apply the `decimal` constructor?"
"while evaluating policy `policy0`: type error: expected decimal, got string"
]
},
{
Expand All @@ -85,7 +85,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected decimal, got string. Maybe you forgot to apply the `decimal` constructor?"
"while evaluating policy `policy0`: type error: expected decimal, got string"
]
},
{
Expand All @@ -106,7 +106,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected decimal, got string. Maybe you forgot to apply the `decimal` constructor?"
"while evaluating policy `policy0`: type error: expected decimal, got string"
]
},
{
Expand All @@ -127,7 +127,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected decimal, got string. Maybe you forgot to apply the `decimal` constructor?"
"while evaluating policy `policy0`: type error: expected decimal, got string"
]
},
{
Expand All @@ -148,7 +148,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected decimal, got string. Maybe you forgot to apply the `decimal` constructor?"
"while evaluating policy `policy0`: type error: expected decimal, got string"
]
},
{
Expand All @@ -169,7 +169,7 @@
"decision": "Deny",
"reasons": [],
"errors": [
"while evaluating policy `policy0`: type error: expected decimal, got string. Maybe you forgot to apply the `decimal` constructor?"
"while evaluating policy `policy0`: type error: expected decimal, got string"
]
}
]
Expand Down
39 changes: 0 additions & 39 deletions cedar-policy-cli/src/err.rs

This file was deleted.

Loading
Loading