Skip to content

Commit 070ced0

Browse files
committed
fix: revert hook try/catch that surpressed errors
1 parent cc3b699 commit 070ced0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

packages/opencode/src/plugin/index.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,10 @@ export namespace Plugin {
6161
for (const hook of await state().then((x) => x.hooks)) {
6262
const fn = hook[name]
6363
if (!fn) continue
64-
try {
65-
// @ts-expect-error if you feel adventurous, please fix the typing, make sure to bump the try-counter if you
66-
// give up.
67-
// try-counter: 2
68-
await fn(input, output)
69-
} catch (e) {
70-
log.error("failed to trigger hook", { name, error: e })
71-
}
64+
// @ts-expect-error if you feel adventurous, please fix the typing, make sure to bump the try-counter if you
65+
// give up.
66+
// try-counter: 2
67+
await fn(input, output)
7268
}
7369
return output
7470
}

0 commit comments

Comments
 (0)