diff --git a/www/app/(errors)/errorContext.tsx b/www/app/(errors)/errorContext.tsx index d541c6f0..e3e58ea5 100644 --- a/www/app/(errors)/errorContext.tsx +++ b/www/app/(errors)/errorContext.tsx @@ -28,6 +28,9 @@ export const ErrorProvider: React.FC = ({ 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 ( { newUrl, ); } + if (message.data.value === "error") { + const newUrl = "/transcripts/" + transcriptId; + router.push(newUrl); + // TODO Test + setError( + Error("Websocket error status"), + "There was an issue processing your transcript", + ); + } setStatus(message.data); break;