We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20cd628 commit b5a7c11Copy full SHA for b5a7c11
ads/aqua/evaluation/evaluation.py
@@ -158,10 +158,11 @@ def create(
158
try:
159
create_aqua_evaluation_details = CreateAquaEvaluationDetails(**kwargs)
160
except Exception as ex:
161
+ custom_errors = {
162
+ ".".join(map(str, e["loc"])): e["msg"] for e in json.loads(ex.json())
163
+ }
164
raise AquaValueError(
- "Invalid create evaluation parameters. "
- "Allowable parameters are: "
- f"{', '.join([field for field in CreateAquaEvaluationDetails.model_fields])}."
165
+ f"Invalid create evaluation parameters. Error details: {custom_errors}."
166
) from ex
167
168
if not is_valid_ocid(create_aqua_evaluation_details.evaluation_source_id):
0 commit comments