MCPcopy Index your code
hub / github.com/openclaw/clawsweeper / dispatchFailureError

Function dispatchFailureError

src/commit-sweeper.ts:796–807  ·  view source on GitHub ↗
(
  options: { dispatch: CommitFindingDispatch; repairRepo: string },
  result: { stdout?: string | null; stderr?: string | null; error?: Error },
)

Source from the content-addressed store, hash-verified

794}
795
796function dispatchFailureError(
797 options: { dispatch: CommitFindingDispatch; repairRepo: string },
798 result: { stdout?: string | null; stderr?: string | null; error?: Error },
799): Error & { stdout: string; stderr: string } {
800 const stdout = result.stdout ?? "";
801 const stderr = result.stderr ?? "";
802 const detail = stderr || stdout || result.error?.message || "unknown gh error";
803 return Object.assign(
804 new Error(`failed to dispatch ${options.dispatch.sha} to ${options.repairRepo}: ${detail}`),
805 { stdout, stderr },
806 );
807}
808
809function dispatchCommitFinding(options: {
810 dispatch: CommitFindingDispatch;

Callers 1

dispatchCommitFindingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected