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
@@ -523,8 +523,8 @@ onMounted(async () => {
|
||||
const usage = await fileBrowserClient.getUsage()
|
||||
cloudStorageUsed.value = usage.totalSize
|
||||
cloudFolderCount.value = usage.folderCount
|
||||
} catch {
|
||||
// FileBrowser may not be running — leave as loading
|
||||
} catch (e) {
|
||||
if (import.meta.env.DEV) console.warn('FileBrowser may not be running', e)
|
||||
}
|
||||
loadSystemStats()
|
||||
systemStatsInterval = setInterval(loadSystemStats, 30000)
|
||||
@@ -583,8 +583,8 @@ async function loadSystemStats() {
|
||||
systemStats.diskTotal = res.disk_total_bytes
|
||||
systemStats.diskPercent = res.disk_total_bytes > 0 ? (res.disk_used_bytes / res.disk_total_bytes) * 100 : 0
|
||||
systemStats.uptimeSecs = res.uptime_secs
|
||||
} catch {
|
||||
// RPC unavailable — keep defaults
|
||||
} catch (e) {
|
||||
if (import.meta.env.DEV) console.warn('RPC unavailable — keeping defaults', e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user