fix: replace all silent .catch(() => {}) with console.warn (BUG-F2)

13 silent catch handlers replaced with descriptive console.warn logging
across 6 frontend files. No silent error swallowing remains.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-12 23:06:22 +00:00
co-authored by Claude Opus 4.6
parent e5ed856df9
commit b4900cb66f
6 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ onMounted(async () => {
if (stats.value?.ownerPubkey) {
fetchNostrProfile(stats.value.ownerPubkey).then(p => {
nostrProfile.value = p
}).catch(() => {})
}).catch(err => console.warn('[BotProfile] webhook test failed:', err))
}
// Poll queue for "choose your fight"
+3 -3
View File
@@ -224,12 +224,12 @@ function wireSSE() {
},
onRoundEnd(data) {
if (_fightEnding) return // Don't start new round animations after fight is ending
_roundEndPromise = handleRoundEnd(data).catch(() => {})
_roundEndPromise = handleRoundEnd(data).catch(err => console.warn('[FightPage] handleRoundEnd failed:', err))
},
onFightEnd(data) {
if (_fightEnding) return // Deduplicate (only process first fight_end)
_fightEnding = true
handleFightEnd(data).catch(() => {})
handleFightEnd(data).catch(err => console.warn('[FightPage] handleFightEnd failed:', err))
},
})
}
@@ -517,7 +517,7 @@ onMounted(async () => {
// Cache finished fights for offline replay
if (status === 'finished' && fight.value) {
cacheFight(fight.value).catch(() => {})
cacheFight(fight.value).catch(err => console.warn('[FightPage] cacheFight failed:', err))
}
isLoading.value = false