debug(sync): expose le corps d'erreur YouTube (reason) + log yt-channels
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user