MCPcopy Create free account
hub / github.com/anomalyco/opencode / error

Function error

packages/opencode/src/cli/ui.ts:121–126  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

119}
120
121export function error(message: string) {
122 if (message.startsWith("Error: ")) {
123 message = message.slice("Error: ".length)
124 }
125 println(Style.TEXT_DANGER_BOLD + "Error: " + Style.TEXT_NORMAL + message)
126}
127
128export function markdown(text: string): string {
129 return text

Callers 1

index.tsFile · 0.50

Calls 1

printlnFunction · 0.70

Tested by

no test coverage detected