Avoid printing undefined to console if a promise is rejected with no argument.

This commit is contained in:
Dillon Kearns 2022-04-22 16:00:14 -07:00
parent 494f1f26d7
commit eae145ebe5

View File

@ -202,7 +202,9 @@ async function run(options) {
processedIndexTemplate
);
} catch (error) {
console.error(error);
if (error) {
console.error(error);
}
buildError = true;
process.exitCode = 1;
}