log error instead of promise rejection

This commit is contained in:
Timo Hocker 2020-04-27 10:18:12 +02:00
parent deacaa76a1
commit d38cfb041c

View File

@ -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));