refactor(clickTtPlayerRegistrationService, memberController): improve error handling and diagnostics

- Updated error response structure in memberController to include detailed information instead of a trace array, enhancing clarity for the client.
- Enhanced ClickTtPlayerRegistrationService to capture and return detailed information about the selected search result and last submission attempt, improving error diagnostics.
- Modified frontend to format and display the new detailed error information, providing better context for users during registration failures.
This commit is contained in:
Torsten Schulz (local)
2026-03-11 17:25:15 +01:00
parent 312a1d9d8a
commit 7cb6b66971
3 changed files with 107 additions and 30 deletions

View File

@@ -225,7 +225,7 @@ const requestClickTtPlayerRegistration = async (req, res) => {
res.status(error.statusCode || error.status || 500).json({
success: false,
error: error.message || 'Click-TT-Antrag konnte nicht eingereicht werden',
trace: Array.isArray(error.trace) ? error.trace : []
details: error.details || null
});
}
};