Plugspace robustness improvement

website
Zef Hemel 2022-07-11 13:51:04 +02:00
parent 3409a1215e
commit ac9c2696ec
1 changed files with 6 additions and 2 deletions

View File

@ -29,8 +29,12 @@ export class PlugSpacePrimitives implements SpacePrimitives {
let allPages = new Set<PageMeta>();
for (let { plug, name, operation } of this.hook.spaceFunctions) {
if (operation === "listPages") {
for (let pm of await plug.invoke(name, [])) {
allPages.add(pm);
try {
for (let pm of await plug.invoke(name, [])) {
allPages.add(pm);
}
} catch (e) {
console.error("Error listing pages", e);
}
}
}