Catalog/next: Add support for dryRun
which is used by the catalog-import plugin. Co-authored-by: Ben Lambert <ben@blam.sh> Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -134,6 +134,7 @@ export class CatalogClient implements CatalogApi {
|
||||
throw new Error(`Location wasn't added: ${target}`);
|
||||
}
|
||||
|
||||
// TODO(jhaals): This will throw using the experimental catalog since all discovered entities are deferred.
|
||||
if (entities.length === 0) {
|
||||
throw new Error(
|
||||
`Location was added but has no entities specified yet: ${target}`,
|
||||
|
||||
Reference in New Issue
Block a user