Skip to content

Commit 089972b

Browse files
authored
Merge pull request #5839 from opsmill/pog-validation-error-logs
Clean up error logging on validation errors
2 parents 2843321 + 954b1e7 commit 089972b

File tree

1 file changed

+1
-1
lines changed
  • backend/infrahub/graphql/mutations

1 file changed

+1
-1
lines changed

backend/infrahub/graphql/mutations/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ async def mutate_create_object(
365365
data=data,
366366
)
367367
except ValidationError as exc:
368-
raise ValueError(str(exc)) from exc
368+
raise ValidationError(input_value=str(exc)) from exc
369369

370370
if await cls._get_profile_ids(db=db, obj=obj):
371371
obj = await cls._refresh_for_profile_update(db=db, branch=branch, obj=obj)

0 commit comments

Comments
 (0)