Skip to content

Commit

Permalink
fix (Transformation): changed error message to be clearer
Browse files Browse the repository at this point in the history
Co-authored-by: Andre Sailer <[email protected]>
  • Loading branch information
ryuwd and andresailer authored Nov 18, 2024
1 parent 54e31f6 commit fa08ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DIRAC/TransformationSystem/DB/TransformationDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def addTransformation(
if key in escapable_columns:
res = self._escapeString(params[key])
if not res["OK"]:
return S_ERROR(f"Could not escape parameter {key}")
return S_ERROR(f"Could not escape value for parameter {key}")
params[key] = res["Value"]
# In an ideal world we would not do this at all, in favour of prepared statements or statement parameters.
req = f"INSERT INTO Transformations ({', '.join(params)}) VALUES ({', '.join(params.values())});"
Expand Down

0 comments on commit fa08ef4

Please sign in to comment.