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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user