From b2d47c7a37a5780d65331413aee5517b01834ec0 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Fri, 7 Nov 2025 13:50:18 +0100 Subject: [PATCH] Update error message in MyTischtennisUrlController for clarity Modified the error handling in MyTischtennisUrlController to specify that only the URL is required, enhancing the clarity of the error response. This change aligns with recent efforts to standardize error handling across the application. --- backend/controllers/myTischtennisUrlController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controllers/myTischtennisUrlController.js b/backend/controllers/myTischtennisUrlController.js index 9ba282d..0e8656c 100644 --- a/backend/controllers/myTischtennisUrlController.js +++ b/backend/controllers/myTischtennisUrlController.js @@ -21,7 +21,7 @@ class MyTischtennisUrlController { const { url } = req.body; if (!url) { - throw new HttpError('URL and clubTeamId are required', 400); + throw new HttpError('URL is required', 400); } // Validate URL