diff --git a/agenta-web/src/components/Playground/Views/TestView.tsx b/agenta-web/src/components/Playground/Views/TestView.tsx index a5ee0d6533..8c09212b8a 100644 --- a/agenta-web/src/components/Playground/Views/TestView.tsx +++ b/agenta-web/src/components/Playground/Views/TestView.tsx @@ -398,9 +398,12 @@ const App: React.FC = ({ return newDataList }) } - } catch (e) { + } catch (e: any) { if (!controller.signal.aborted) { - setResultForIndex(`❌ ${getErrorMessage(e)}`, index) + setResultForIndex( + `❌ ${getErrorMessage(e?.response?.data?.error || e?.response?.data, e)}`, + index, + ) } else { setResultForIndex("", index) setAdditionalDataList((prev) => {