mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-11-29 12:46:32 +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 != '') {
|
if (jsSource != '') {
|
||||||
log('Compiled, optimizing JS...');
|
log('Compiled, optimizing JS...');
|
||||||
} else {
|
} else {
|
||||||
process.exit(1)
|
throw new Error('An error occurred when compiling your application with Elm 0.19.1.');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Please provide a path to an Elm file.\n' + program.helpInformation());
|
throw new Error('Please provide a path to an Elm file.\n' + program.helpInformation());
|
||||||
|
Loading…
Reference in New Issue
Block a user