From d38cfb041c74a5911eeb6118bc891ebdf5e6b5c5 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 27 Apr 2020 10:18:12 +0200 Subject: [PATCH] log error instead of promise rejection --- lib/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index 5857b9d..f8b589a 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -23,4 +23,6 @@ import { Snippet } from './Snippet'; const runner = new (await import (`./snippets/${snippet}/index.js`)).default as Snippet; runner.start (process.cwd ()); -}) (); +}) () + // eslint-disable-next-line no-console + .catch ((e) => console.log (e));