Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Dax 2025-12-07 19:04:14 -05:00 • committed by GitHub
commit ea7ec60f51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,10 +61,14 @@ export namespace Plugin {
for (const hook of await state().then((x) => x.hooks)) {
const fn = hook[name]
if (!fn) continue
// @ts-expect-error if you feel adventurous, please fix the typing, make sure to bump the try-counter if you
// give up.
// try-counter: 2
await fn(input, output)
try {
// @ts-expect-error if you feel adventurous, please fix the typing, make sure to bump the try-counter if you
// give up.
// try-counter: 2
await fn(input, output)
} catch (e) {
log.error("failed to trigger hook", { name, error: e })
}
}
return output
}