MCPcopy Index your code
hub / github.com/anomalyco/opencode / onError

Function onError

packages/opencode/src/plugin/xai.ts:389–392  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

387 // and returns a redirect_uri pointing at nothing.
388 await new Promise<void>((resolve, reject) => {
389 const onError = (err: Error) => {
390 oauthServer = undefined
391 reject(err)
392 }
393 server.once("error", onError)
394 server.listen(OAUTH_PORT, OAUTH_HOST, () => {
395 server.removeListener("error", onError)

Callers

nothing calls this directly

Calls 1

rejectFunction · 0.50

Tested by

no test coverage detected