Skip to content

Commit 481b8b1

Browse files
authored
remove needlessly scary error message (#6570)
1 parent 639a3ad commit 481b8b1

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
@@ -533,7 +533,7 @@ async def mutate_upsert(
533533
except HFIDViolatedError as exc:
534534
# Only the HFID constraint has been violated, it means the node exists and we can update without rerunning constraints
535535
if len(exc.matching_nodes_ids) > 1:
536-
raise RuntimeError(f"Multiple {schema_name} nodes have the same hfid (database corrupted)") from exc
536+
raise RuntimeError(f"Multiple {schema_name} nodes have the same hfid") from exc
537537
node_id = list(exc.matching_nodes_ids)[0]
538538
node = await NodeManager.get_one(db=db, id=node_id, kind=schema_name, branch=branch, raise_on_error=True)
539539
updated_obj, mutation = await cls._call_mutate_update(

0 commit comments

Comments
 (0)