mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-24 08:57:25 +00:00
fix(error-handling): surface silent errors across the codebase (#326)
Add console.warn/console.error logging to 22 silent catch blocks across 10 files. Errors in cleanup, migrations, SSO, fleet snapshots, shutdown, and validation are now visible in logs. ENOENT guards added to file-system catches to distinguish missing files from permission errors. No control flow changes.
This commit is contained in:
@@ -63,7 +63,9 @@ export function Login({
|
||||
fetch('/api/auth/sso/providers', { credentials: 'include' })
|
||||
.then(r => r.ok ? r.json() : [])
|
||||
.then((providers: SSOProvider[]) => setSsoProviders(providers))
|
||||
.catch(() => {});
|
||||
.catch((e) => {
|
||||
console.warn('[Login] SSO provider discovery failed:', e);
|
||||
});
|
||||
}, []);
|
||||
|
||||
const hasLdap = ssoProviders.some(p => p.type === 'ldap');
|
||||
|
||||
Reference in New Issue
Block a user