Skip to content

Commit e59dea2

Browse files
committed
"feature" param for license_restriction error
The license_restriction error now takes a "feature" parameter to tell the caller which licence feature would be needed for success. Signed-off-by: Thomas Sanders <[email protected]>
1 parent 2de31ea commit e59dea2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocaml/idl/datamodel.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ let _ =
416416
~doc:"Your license has expired. Please contact your support representative." ();
417417
error Api_errors.license_processing_error []
418418
~doc:"There was an error processing your license. Please contact your support representative." ();
419-
error Api_errors.license_restriction []
420-
~doc:"This operation is not allowed under your license. Please contact your support representative." ();
419+
error Api_errors.license_restriction ["feature"]
420+
~doc:"This operation is not allowed because your license lacks a needed feature. Please contact your support representative." ();
421421
error Api_errors.license_cannot_downgrade_in_pool []
422422
~doc:"Cannot downgrade license while in pool. Please disband the pool first, then downgrade licenses on hosts separately." ();
423423
error Api_errors.license_does_not_support_pooling []

0 commit comments

Comments
 (0)