From 0d7f930a4cf790f97506355fd3a9973cc6a8fa25 Mon Sep 17 00:00:00 2001 From: jagadeeswaran-zipstack Date: Mon, 20 Jan 2025 19:00:21 +0530 Subject: [PATCH] [Fix] Prompt Studio: Show error response from BE (#1080) Error message display from BE --- .../custom-tools/manage-docs-modal/ManageDocsModal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/custom-tools/manage-docs-modal/ManageDocsModal.jsx b/frontend/src/components/custom-tools/manage-docs-modal/ManageDocsModal.jsx index f739dbff9..85f71df61 100644 --- a/frontend/src/components/custom-tools/manage-docs-modal/ManageDocsModal.jsx +++ b/frontend/src/components/custom-tools/manage-docs-modal/ManageDocsModal.jsx @@ -580,7 +580,7 @@ function ManageDocsModal({ setIsUploading(false); setAlertDetails({ type: "error", - content: "Failed to upload", + content: info?.file?.response?.errors[0]?.detail || "Failed to Upload", }); } };