From 845096d1ea76a21ed53ddd04b60b39982bd31541 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 5 Apr 2023 22:48:31 -0300 Subject: [PATCH] getting error message from backend on prompt verification --- src/frontend/src/modals/promptModal/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/src/modals/promptModal/index.tsx b/src/frontend/src/modals/promptModal/index.tsx index e958d2a45..10dab2c2c 100644 --- a/src/frontend/src/modals/promptModal/index.tsx +++ b/src/frontend/src/modals/promptModal/index.tsx @@ -132,11 +132,10 @@ export default function PromptAreaModal({ } }) .catch((error) => { - console.log(error) return setErrorData({ title: "There is something wrong with this prompt, please review it", - }); + list:[error.response.data.detail]}); }); }} >