debug(sync): expose le corps d'erreur YouTube (reason) + log yt-channels

This commit is contained in:
2026-09-27 08:14:26 -04:00
parent f038f19b71
commit 720367fe13
2 changed files with 22 additions and 3 deletions
+3
View File
@@ -578,6 +578,9 @@ r.get('/oauth/google/yt-channels', authMiddlewareCookieAware, oauthLimiter, asyn
const out = { error: error?.message || 'yt_channels_failed' };
if (error?.detail) out.detail = error.detail;
if (error?.hint) out.hint = error.hint;
try {
console.warn(`[oauth] yt-channels échec user=${req.user?.id} code=${out.error} detail=${String(error?.detail || '').slice(0, 300)}`);
} catch {}
return res.status(error?.status || 502).json(out);
}
});