From f0af38e69677d1afe17e48b3f5267128db3db1a4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 30 Jul 2020 14:54:31 +0200 Subject: Fix lint --- scripts/danger/clean/cleaner.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/danger/clean/cleaner.ts') diff --git a/scripts/danger/clean/cleaner.ts b/scripts/danger/clean/cleaner.ts index 2d5366a91..69e8a63a0 100644 --- a/scripts/danger/clean/cleaner.ts +++ b/scripts/danger/clean/cleaner.ts @@ -14,7 +14,7 @@ initDatabaseModels(true) console.info('Tables of %s deleted.', CONFIG.DATABASE.DBNAME) const STORAGE = CONFIG.STORAGE - Promise.mapSeries(Object.keys(STORAGE), storage => { + return Promise.mapSeries(Object.keys(STORAGE), storage => { const storageDir = STORAGE[storage] return new Promise((res, rej) => { @@ -28,3 +28,7 @@ initDatabaseModels(true) }) .then(() => process.exit(0)) }) + .catch(err => { + console.error(err) + process.exit(-1) + }) -- cgit v1.2.3