diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-06 17:50:50 -0400 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-06 17:50:50 -0400 |
commit | 881718c4c7f58837a8a208930e7d2c69b9433fd7 (patch) | |
tree | 1d86b8cb99f036fd80987e0c3b16fee52f382c02 /extension/react-app/src/components/StepContainer.tsx | |
parent | 5cb69176f731d6e93802e29eb37c5c5d83003be2 (diff) | |
download | sncontinue-881718c4c7f58837a8a208930e7d2c69b9433fd7.tar.gz sncontinue-881718c4c7f58837a8a208930e7d2c69b9433fd7.tar.bz2 sncontinue-881718c4c7f58837a8a208930e7d2c69b9433fd7.zip |
trying to reliably capture terminal output in vsc
Diffstat (limited to 'extension/react-app/src/components/StepContainer.tsx')
-rw-r--r-- | extension/react-app/src/components/StepContainer.tsx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx index dab5a752..a150e370 100644 --- a/extension/react-app/src/components/StepContainer.tsx +++ b/extension/react-app/src/components/StepContainer.tsx @@ -22,6 +22,7 @@ import { HistoryNode } from "../../../schema/HistoryNode"; import ReactMarkdown from "react-markdown"; import ContinueButton from "./ContinueButton"; import InputAndButton from "./InputAndButton"; +import ToggleErrorDiv from "./ToggleErrorDiv"; interface StepContainerProps { historyNode: HistoryNode; @@ -170,13 +171,10 @@ function StepContainer(props: StepContainerProps) { )} {props.historyNode.observation?.error ? ( - <> - Error while running step: - <br /> - <pre className="overflow-scroll"> - {props.historyNode.observation.error as string} - </pre> - </> + <ToggleErrorDiv + title={"Error while running step:"} + error={props.historyNode.observation.error as string} + /> ) : ( <ReactMarkdown key={1} className="overflow-scroll"> {props.historyNode.step.description as any} |