catalog-backend: Remove catalogProcessor.handleError
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-backend': minor
|
||||
---
|
||||
|
||||
**Breaking**: Removed optional `handleError()` from `CatalogProcessor`. This optional method is never called by the catalog processing engine and can therefore be removed.
|
||||
@@ -300,11 +300,6 @@ export type CatalogProcessor = {
|
||||
emit: CatalogProcessorEmit,
|
||||
cache: CatalogProcessorCache,
|
||||
): Promise<Entity>;
|
||||
handleError?(
|
||||
error: Error,
|
||||
location: LocationSpec,
|
||||
emit: CatalogProcessorEmit,
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
// @public
|
||||
|
||||
@@ -116,20 +116,6 @@ export type CatalogProcessor = {
|
||||
emit: CatalogProcessorEmit,
|
||||
cache: CatalogProcessorCache,
|
||||
): Promise<Entity>;
|
||||
|
||||
/**
|
||||
* Handles an emitted error.
|
||||
*
|
||||
* @param error - The error
|
||||
* @param location - The location where the error occurred
|
||||
* @param emit - A sink for items resulting from this handling
|
||||
* @returns Nothing
|
||||
*/
|
||||
handleError?(
|
||||
error: Error,
|
||||
location: LocationSpec,
|
||||
emit: CatalogProcessorEmit,
|
||||
): Promise<void>;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user