Merge pull request #11266 from overleaf/jpa-translations-sync-debugging

[web] scripts: verbose logging in upload script

GitOrigin-RevId: dbc8793358fee63dabf1d5a9b80c3613a147a53b
This commit is contained in:
Jakob Ackermann 2023-01-16 10:36:16 +00:00 committed by Copybot
parent 6154db8f92
commit d1c2c46224

View file

@ -35,7 +35,7 @@ async function pollUploadStatus(importId) {
await sleep(5000) await sleep(5000)
} }
if (task.status === 'failed') { if (task.status === 'failed') {
console.error({ task }) console.error(JSON.stringify({ task }, null, 2))
throw new Error('upload failed') throw new Error('upload failed')
} }
} }