feat(clickTtTournamentRegistrationService): enhance error handling and diagnostics for tournament registration

- Added detailed diagnostics to capture page content and URLs during registration failures, improving error reporting.
- Implemented a function to build a debug HTML path for saving page content, aiding in troubleshooting.
- Updated error handling to include relevant diagnostic information in error messages, enhancing clarity for users.
This commit is contained in:
Torsten Schulz (local)
2026-03-11 21:16:23 +01:00
parent 8776c01e47
commit dba290c1d4
2 changed files with 59 additions and 5 deletions

View File

@@ -885,6 +885,9 @@ export default {
const response = await apiClient.post(
`/official-tournaments/${this.currentClub}/${this.uploadedId}/auto-register`
);
if (!response?.data?.success) {
throw new Error(response?.data?.error || 'Die automatische click-TT-Anmeldung ist fehlgeschlagen.');
}
await this.reload();
await this.showInfo(
'Erfolg',
@@ -1567,4 +1570,3 @@ th, td { border-bottom: 1px solid var(--border-color); padding: 0.5rem; text-ali
}
}
</style>