GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: revert hook try/catch that surpressed errors · bpd1069/opencode@070ced0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/opencode/src/plugin
    • index.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/src/plugin/index.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/plugin/index.ts
+4-8Lines 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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.