catalog: Consider processing results with errors as failing

Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-10-01 13:28:40 +02:00
parent cdcd47ad1f
commit 2c5bab2f82
2 changed files with 8 additions and 1 deletions
@@ -157,7 +157,7 @@ export class DefaultCatalogProcessingOrchestrator
...collectorResults,
completedEntity: entity,
state: { cache: cache.collect() },
ok: true,
ok: collectorResults.errors.length === 0,
};
} catch (error) {
this.options.logger.warn(error.message);