fix: remove unnecessary details from import errors (#10703)

# Which Problems Are Solved

During the implementation of #10687, it was noticed that the import
endpoint might provide unnecessary error details.

# How the Problems Are Solved

Remove the underlying (parent) error from the error message.

# Additional Changes

none

# Additional Context

relates to #10687

Co-authored-by: Silvan <[email protected]>
This commit is contained in:
Livio Spring
2025-09-12 07:50:57 +02:00
committed by GitHub
co-authored by Silvan
parent a9cd3ff9c0
commit 25d921b20c
2 changed files with 54 additions and 41 deletions
@@ -336,7 +336,7 @@ func TestServer_ImportData(t *testing.T) {
{
Type: "project_grant",
Id: orgIDs[3] + "_" + projectIDs[2] + "_" + orgIDs[4],
Message: "ID=V3-DKcYh Message=Errors.Project.Grant.AlreadyExists Parent=(ERROR: duplicate key value violates unique constraint \"unique_constraints_pkey\" (SQLSTATE 23505))",
Message: "ID=V3-DKcYh Message=Errors.Project.Grant.AlreadyExists",
},
},
Success: &admin.ImportDataSuccess{