From fa08ef4c8e16a5148a39bde8555234135297245b Mon Sep 17 00:00:00 2001 From: Ryunosuke O'Neil Date: Mon, 18 Nov 2024 17:03:15 +0100 Subject: [PATCH] fix (Transformation): changed error message to be clearer Co-authored-by: Andre Sailer --- src/DIRAC/TransformationSystem/DB/TransformationDB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/TransformationSystem/DB/TransformationDB.py b/src/DIRAC/TransformationSystem/DB/TransformationDB.py index 370715542a2..169d7556c36 100755 --- a/src/DIRAC/TransformationSystem/DB/TransformationDB.py +++ b/src/DIRAC/TransformationSystem/DB/TransformationDB.py @@ -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())});"