WIP triage responses and handle websocket err

This commit is contained in:
Sara
2023-11-03 13:40:53 +01:00
parent 73327d2e9e
commit 08b6d05f39
2 changed files with 12 additions and 0 deletions

View File

@@ -28,6 +28,9 @@ export const ErrorProvider: React.FC<ErrorProviderProps> = ({ children }) => {
const declareError = (error, humanMessage?) => {
setError(error);
setHumanMessage(humanMessage);
console.log(error.message, { ...error });
//TODO ignore not found in request errors (in useTopics, useTranscript...)
// if (error.name == ResponseError && error.response.status == 404)
};
return (
<ErrorContext.Provider