This commit is contained in:
syuilo
2022-02-04 11:10:53 +09:00
parent 73de9be6d5
commit bd7662e5e4
7 changed files with 29 additions and 20 deletions

View File

@ -41,7 +41,9 @@ export async function importCustomEmojis(job: Bull.Job<DbUserImportJobData>, don
fs.writeFileSync(destPath, '', 'binary');
await downloadUrl(file.url, destPath);
} catch (e) { // TODO: 何度か再試行
logger.error(e);
if (e instanceof Error || typeof e === 'string') {
logger.error(e);
}
throw e;
}