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:
@@ -40,7 +40,7 @@ export async function fetchGitHubAppInfo(repoUrl: string, appId: string): Promis
|
||||
targetRepo = start9RepoName
|
||||
}
|
||||
} catch (e) {
|
||||
// Fall back to original repo
|
||||
if (import.meta.env.DEV) console.warn('Start9 repo lookup failed, falling back to original repo', e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ export async function fetchGitHubAppInfo(repoUrl: string, appId: string): Promis
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
// Try next path
|
||||
if (import.meta.env.DEV) console.warn('Icon path lookup failed, trying next path', e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ export async function fetchGitHubAppInfo(repoUrl: string, appId: string): Promis
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
// No icon from releases
|
||||
if (import.meta.env.DEV) console.warn('No icon from releases', e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ export async function fetchGitHubAppInfo(repoUrl: string, appId: string): Promis
|
||||
break
|
||||
}
|
||||
} catch (e) {
|
||||
// Try next URL
|
||||
if (import.meta.env.DEV) console.warn('Raw icon URL failed, trying next URL', e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user