can we raise custom error message when a constraint fails ? #2199
Unanswered
subramanian0331
asked this question in
Q&A
Replies: 2 comments
-
Not currently, unless you use the GoAPI to parse it out and present it. I think there is an open issue around supporting this, but the design space is a little more complicated. consider:
(https://cuelang.org/play/?id=k5YIOKjxMhm#cue@export@cue) Which error should be presented here? Attributes are also stripped through references, so the error message can be lost
(https://cuelang.org/play/?id=wANF_9YPb3a#cue@export@cue) This one is intentional because of
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
count: >5 @error( server count should be >5 )
can we create custom error to cue constraints?
Beta Was this translation helpful? Give feedback.
All reactions