Merge pull request #4482 from chezsmithy/fix-stdout-terminal
fix(tools): Terminal command returns stdout but not stderr after error detected
This commit is contained in:
commit
81c71d89ce
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import childProcess from "node:child_process";
|
||||
import util from "node:util";
|
||||
|
||||
import { ToolImpl } from ".";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { ToolImpl } from ".";
|
||||
|
||||
const asyncExec = util.promisify(childProcess.exec);
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ export const runTerminalCommandImpl: ToolImpl = async (args, extras) => {
|
|||
{
|
||||
name: "Terminal",
|
||||
description: "Terminal command output",
|
||||
content: error.stderr ?? error.toString(),
|
||||
content: error.stderr || error.stdout || error.toString(),
|
||||
},
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue