From f55db08f362735ffb9dcee118541e14c4381d8ad Mon Sep 17 00:00:00 2001 From: Bsian Date: Sun, 29 Mar 2020 22:51:17 +0100 Subject: [PATCH] More bug fixes? --- src/commands/cwg_create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/cwg_create.ts b/src/commands/cwg_create.ts index 2d8937e..ce53fa5 100644 --- a/src/commands/cwg_create.ts +++ b/src/commands/cwg_create.ts @@ -182,7 +182,7 @@ export default class CWG_Create extends Command { } catch (error) { const tasks = [fs.unlink(`/etc/nginx/sites-enabled/${domain}`), fs.unlink(`/etc/nginx/sites-available/${domain}`), this.client.db.Domain.deleteMany({ domain })]; await Promise.allSettled(tasks); - throw error; + return Promise.reject(error); } }