mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-25 09:21:57 +03:00
Avoid printing undefined to console if a promise is rejected with no argument.
This commit is contained in:
parent
494f1f26d7
commit
eae145ebe5
@ -202,7 +202,9 @@ async function run(options) {
|
||||
processedIndexTemplate
|
||||
);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
if (error) {
|
||||
console.error(error);
|
||||
}
|
||||
buildError = true;
|
||||
process.exitCode = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user