Skip to content

Commit 8beb3de

Browse files
author
Mauve Signweaver
committed
fix: catch errors during site deletes
1 parent e76bebb commit 8beb3de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/sites.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ export class SiteConfigStore extends Config<Static<typeof Site>> {
126126
promises.push(this.protocols.hyper.unsync(id, site.links.hyper, ctx))
127127
}
128128

129-
await Promise.all(promises)
129+
await Promise.all(promises).catch((e) => {
130+
ctx?.logger.warn(`Error unsyncing site ${e.stack as string}`)
131+
})
130132
await this.db.del(id)
131133
}
132134

0 commit comments

Comments
 (0)