From 4845e5d9ac601272cd7ab52133979e369ed3ac38 Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Fri, 1 Oct 2021 23:18:34 +0200 Subject: [PATCH] Throw an error instead of using process.exit --- src/run.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run.ts b/src/run.ts index d2077e1..c55e32e 100644 --- a/src/run.ts +++ b/src/run.ts @@ -76,7 +76,7 @@ export async function run( if (jsSource != '') { log('Compiled, optimizing JS...'); } else { - process.exit(1) + throw new Error('An error occurred when compiling your application with Elm 0.19.1.'); } } else { throw new Error('Please provide a path to an Elm file.\n' + program.helpInformation());