fix: add dev-mode warnings to all 24 silent catch blocks
Every empty/comment-only catch block now logs a descriptive warning in dev mode via `if (import.meta.env.DEV) console.warn(...)`. Covers 15 files across views, stores, components, and utils. Zero silent catches remaining. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
7a7cbf1da3
commit
bc879b3581
@@ -387,8 +387,8 @@ async function loadNetworkData() {
|
||||
const count = fwdRes.value.forwards?.length ?? 0
|
||||
networkData.value.forwardCount = `${count} rule${count !== 1 ? 's' : ''}`
|
||||
}
|
||||
} catch {
|
||||
// Keep N/A defaults on failure
|
||||
} catch (e) {
|
||||
if (import.meta.env.DEV) console.warn('Keep N/A defaults on failure', e)
|
||||
} finally {
|
||||
networkLoading.value = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user