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:
co-authored by
Claude Opus 4.6
parent
e5ed856df9
commit
b4900cb66f
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user