diff --git a/code/websites/pokedex.online/src/components/challonge/TournamentDetail.vue b/code/websites/pokedex.online/src/components/challonge/TournamentDetail.vue index 14fa9ca..66c81f3 100644 --- a/code/websites/pokedex.online/src/components/challonge/TournamentDetail.vue +++ b/code/websites/pokedex.online/src/components/challonge/TournamentDetail.vue @@ -108,12 +108,12 @@ const errorMessage = computed(() => { } // Fallback - try multiple approaches - + // Try to get status code directly if (err.status) { return `Error ${err.status}: Request failed`; } - + // Try to stringify for debugging try { const errorStr = JSON.stringify(err); @@ -124,13 +124,13 @@ const errorMessage = computed(() => { } catch (e) { // Ignore stringify errors } - + // Use toString if available and not [object Object] const str = err.toString ? err.toString() : String(err); if (str && str !== '[object Object]') { return str; } - + console.error('Unable to parse error:', err); return 'An error occurred loading tournament details. Check console for details.'; });