MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / readServerLog

Function readServerLog

e2e/cloud/storage-error-report-shape.test.ts:150–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148];
149
150const readServerLog = (): string => {
151 const texts = serverLogCandidates.flatMap((path) => {
152 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: probing which of the two stdout sinks this run uses
153 try {
154 return [readFileSync(path, "utf8")];
155 } catch {
156 return [];
157 }
158 });
159 return texts.join("\n");
160};
161
162const REPORT_PREFIX = "[api] unhandled cause: ";
163

Callers 1

reportForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected