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;