Update src/tools/runTerminalCommand.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Nate Sesti 2025-07-30 13:44:21 -07:00 • committed by GitHub
parent a2b3206c4a
commit d21bd215fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ export const runTerminalCommandTool: Tool = {
telemetryService.recordPullRequestCreated();
}
if (code !== 0 && stderr) {
if (code !== 0) {
reject(`Error (exit code ${code}): ${stderr}`);
return;
}