mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-11-25 22:50:42 +03:00
Throw an error instead of using process.exit
This commit is contained in:
parent
c33c280e09
commit
4845e5d9ac
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user