We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4bcc68 commit 2d21b98Copy full SHA for 2d21b98
frontend/src/components/chat/Chat.jsx
@@ -137,9 +137,9 @@ const Chat = ({ setPage }) => {
137
);
138
139
if (!response.ok) {
140
- throw new Error(
141
- errorResponse.message || `HTTP error! status: ${response.status}`
142
- );
+ const error =await response.json();
+ console.log("response", error);
+ throw new Error(error || `HTTP error! status: ${response.status}`);
143
}
144
145
const data = await response.json();
0 commit comments