diff --git a/crc/api/workflow.py b/crc/api/workflow.py index 14b048c6..123716bc 100644 --- a/crc/api/workflow.py +++ b/crc/api/workflow.py @@ -48,13 +48,13 @@ def validate_workflow_specification(spec_id): try: WorkflowService.test_spec(spec_id) except ApiError as ae: - # ae.message = "When populating all fields ... \n" + ae.message + ae.message = "When populating all fields ... \n" + ae.message errors['all'] = ae try: # Run the validation twice, the second time, just populate the required fields. WorkflowService.test_spec(spec_id, required_only=True) except ApiError as ae: - # ae.message = "When populating only required fields ... \n" + ae.message + ae.message = "When populating only required fields ... \n" + ae.message errors['required'] = ae interpreted_errors = ValidationErrorService.interpret_validation_errors(errors) return ApiErrorSchema(many=True).dump(interpreted_errors)