mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
fix: fix unwanted crash when not supplying an error path
This commit is contained in:
@@ -82,7 +82,7 @@ commander
|
|||||||
// tslint:disable-next-line:no-magic-numbers
|
// tslint:disable-next-line:no-magic-numbers
|
||||||
writeFileSync(errPath, JSON.stringify(result.errors, null, 2));
|
writeFileSync(errPath, JSON.stringify(result.errors, null, 2));
|
||||||
Logger.ok(`Mapping errors written to ${errPath}.`);
|
Logger.ok(`Mapping errors written to ${errPath}.`);
|
||||||
} else {
|
} else if (result.errors.length > 0) {
|
||||||
for (const error of result.errors) {
|
for (const error of result.errors) {
|
||||||
await Logger.error(error);
|
await Logger.error(error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user