MCPcopy Index your code
hub / github.com/cameri/nostream / writeJsonError

Function writeJsonError

src/cli/commands/info.ts:114–116  ·  view source on GitHub ↗
(message: string, code = 1)

Source from the content-addressed store, hash-verified

112}
113
114const writeJsonError = (message: string, code = 1): void => {
115 process.stderr.write(`${JSON.stringify({ error: { message, code } })}\n`)
116}
117
118export const getInfoPayload = async () => {
119 const settings = loadMergedSettings()

Callers 1

runInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected