Triage error and better websocket handling

This commit is contained in:
Sara
2023-11-03 17:15:03 +01:00
parent 08b6d05f39
commit 26330b9de2
11 changed files with 45 additions and 28 deletions

View File

@@ -28,9 +28,6 @@ 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