Raise proper errors when there are too many contract constraints.
Fixes PR 14890. This could potentially be relaxed if needed, but this addresses the immediate issue.
This commit is contained in:
parent
ae0717d970
commit
bafc7d93e7
|
@ -284,5 +284,15 @@
|
|||
(raise (exn:fail:constraint-failure
|
||||
(format "Violated constraint: ~a" reason)
|
||||
(current-continuation-marks)
|
||||
reason)))]))]))
|
||||
reason)))]
|
||||
[(contract-restrict (kind-max d _) rec constraints)
|
||||
(raise (exn:fail:constraint-failure
|
||||
(format "Violated constraint: ~a" "too many ids")
|
||||
(current-continuation-marks)
|
||||
(~a d)))]))]
|
||||
[(contract-restrict (kind-max d _) rec constraints)
|
||||
(raise (exn:fail:constraint-failure
|
||||
(format "Violated constraint: ~a" "too many ids")
|
||||
(current-continuation-marks)
|
||||
(~a d)))]))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user