MCPcopy Index your code
hub / github.com/openai/codex-plugin-cc / formatCommandFailure

Function formatCommandFailure

plugins/codex/scripts/lib/process.mjs:120–135  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

118}
119
120export function formatCommandFailure(result) {
121 const parts = [`${result.command} ${result.args.join(" ")}`.trim()];
122 if (result.signal) {
123 parts.push(`signal=${result.signal}`);
124 } else {
125 parts.push(`exit=${result.status}`);
126 }
127 const stderr = (result.stderr || "").trim();
128 const stdout = (result.stdout || "").trim();
129 if (stderr) {
130 parts.push(stderr);
131 } else if (stdout) {
132 parts.push(stdout);
133 }
134 return parts.join(": ");
135}

Callers 3

measureGitOutputBytesFunction · 0.90
runCommandCheckedFunction · 0.85
terminateProcessTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected