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

Function die

packages/opencode/src/cli/cmd/run.ts:276–279  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

274 const auto = args.auto || args.yolo || args["dangerously-skip-permissions"]
275 const thinking = interactive ? (args.thinking ?? true) : (args.thinking ?? false)
276 const die = (message: string): never => {
277 UI.error(message)
278 process.exit(1)
279 }
280 const dieInteractive = (error: unknown): never => {
281 if (error instanceof Error && error.message === INTERACTIVE_INPUT_ERROR) {
282 die(error.message)

Callers 2

dieInteractiveFunction · 0.85
run.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected