fix: fix unwanted crash when not supplying an error path

This commit is contained in:
Wieland Schöbl
2021-08-05 15:40:00 +02:00
parent 4861f7d22c
commit 28334b800c

View File

@@ -82,7 +82,7 @@ commander
// tslint:disable-next-line:no-magic-numbers
writeFileSync(errPath, JSON.stringify(result.errors, null, 2));
Logger.ok(`Mapping errors written to ${errPath}.`);
} else {
} else if (result.errors.length > 0) {
for (const error of result.errors) {
await Logger.error(error);
}