(result)
| 118 | } |
| 119 | |
| 120 | export 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 | } |
no outgoing calls
no test coverage detected