mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-11-25 13:45:08 +03:00
Throw an error if outputFilePath is not defined
This commit is contained in:
parent
ac3d1349af
commit
07dd5d2fe9
@ -19,6 +19,10 @@ export async function run(
|
||||
},
|
||||
log: (message?: any, ...optionalParams: any[]) => void
|
||||
) {
|
||||
if (!options.outputFilePath) {
|
||||
throw new Error('Missing an output file path');
|
||||
}
|
||||
|
||||
const dirname = process.cwd();
|
||||
let jsSource: string = '';
|
||||
let elmFilePath = undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user