mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-11 12:12:55 +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
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user