fix: revert hook try/catch that surpressed errors
This commit is contained in:
parent
cc3b699823
commit
070ced0b3f
1 changed files with 4 additions and 8 deletions
|
|
@ -61,14 +61,10 @@ export namespace Plugin {
|
||||||
for (const hook of await state().then((x) => x.hooks)) {
|
for (const hook of await state().then((x) => x.hooks)) {
|
||||||
const fn = hook[name]
|
const fn = hook[name]
|
||||||
if (!fn) continue
|
if (!fn) continue
|
||||||
try {
|
// @ts-expect-error if you feel adventurous, please fix the typing, make sure to bump the try-counter if you
|
||||||
// @ts-expect-error if you feel adventurous, please fix the typing, make sure to bump the try-counter if you
|
// give up.
|
||||||
// give up.
|
// try-counter: 2
|
||||||
// try-counter: 2
|
await fn(input, output)
|
||||||
await fn(input, output)
|
|
||||||
} catch (e) {
|
|
||||||
log.error("failed to trigger hook", { name, error: e })
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue