MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / renameHelperLogPathOrThrow

Function renameHelperLogPathOrThrow

src/utils/simulator-steps.ts:315–328  ·  view source on GitHub ↗
(
  currentPath: string,
  helperPath: string,
  child: ChildProcess,
)

Source from the content-addressed store, hash-verified

313}
314
315function renameHelperLogPathOrThrow(
316 currentPath: string,
317 helperPath: string,
318 child: ChildProcess,
319): string {
320 try {
321 fs.renameSync(currentPath, helperPath);
322 return helperPath;
323 } catch (error) {
324 stopDetachedHelper(child);
325 const message = toErrorMessage(error);
326 throw new Error(`Failed to move log file to helper-pid protected path: ${message}`);
327 }
328}
329
330function readLogFileSafe(filePath: string): string {
331 try {

Callers 2

startTrackedOsLogStreamFunction · 0.85

Calls 2

toErrorMessageFunction · 0.90
stopDetachedHelperFunction · 0.85

Tested by

no test coverage detected