diff --git a/lib/plugins/s3/limit.js b/lib/plugins/s3/limit.js index e72f50ce5..4870f9e3a 100644 --- a/lib/plugins/s3/limit.js +++ b/lib/plugins/s3/limit.js @@ -1,3 +1,6 @@ +import { getLogger } from '@sitespeed.io/log'; +const log = getLogger('sitespeedio.plugin.s3'); + export async function runWithConcurrencyLimit(tasks, limit) { async function worker() { while (tasks.length > 0) { @@ -5,7 +8,7 @@ export async function runWithConcurrencyLimit(tasks, limit) { try { await task(); } catch (error) { - throw error; + log.error('Could not finish upload task', error); } } }