From 01619dee22943e2881e171f5cbcf446a243fc351 Mon Sep 17 00:00:00 2001 From: knottAutodesk <143034967+knottAutodesk@users.noreply.github.com> Date: Sun, 17 Mar 2024 10:27:48 -0700 Subject: [PATCH] Update external-integrations.md It's not an error if we have a cache hit. Signed-off-by: knottAutodesk <143034967+knottAutodesk@users.noreply.github.com> --- docs/features/software-catalog/external-integrations.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/features/software-catalog/external-integrations.md b/docs/features/software-catalog/external-integrations.md index 38c30bd701..7763b2af4e 100644 --- a/docs/features/software-catalog/external-integrations.md +++ b/docs/features/software-catalog/external-integrations.md @@ -679,9 +679,10 @@ export class SystemXReaderProcessor implements CatalogProcessor { if (error.name === 'NotModifiedError' && cacheItem) { // The ETag matches and we have a cached value from the previous run. emit(processingResult.entity(location, cacheItem.entity)); + } else { + const message = `Unable to read ${location.type}, ${error}`; + emit(processingResult.generalError(location, message)); } - const message = `Unable to read ${location.type}, ${error}`; - emit(processingResult.generalError(location, message)); } return true;