diff --git a/src/run.ts b/src/run.ts index 2ec84fa..d2077e1 100644 --- a/src/run.ts +++ b/src/run.ts @@ -79,9 +79,7 @@ export async function run( process.exit(1) } } else { - console.error('Please provide a path to an Elm file.'); - program.outputHelp(); - return; + throw new Error('Please provide a path to an Elm file.\n' + program.helpInformation()); } if (jsSource != '') { const transformed = await Transform.transform(