catalog-import: Display prepareResult in final step

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-06-07 13:21:52 +02:00
parent 18ddc1b318
commit 70bc30c5b7
6 changed files with 19 additions and 19 deletions
@@ -134,12 +134,6 @@ 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}`,
);
}
return {
location,
entities,