From 7c546d1cc7023e6852f37c718310feab73f1d60d Mon Sep 17 00:00:00 2001 From: vladimir-cucu Date: Thu, 18 Jan 2024 09:05:41 +0200 Subject: [PATCH] fix: Change console error message --- src/store/app/thunks.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/store/app/thunks.ts b/src/store/app/thunks.ts index 93a5fbe5b..ea74e73c2 100644 --- a/src/store/app/thunks.ts +++ b/src/store/app/thunks.ts @@ -79,9 +79,12 @@ export const connectAndStartPolling = createAsyncThunk< ); } catch (error) { // XXX Send to sentry if it's an error that's not connection related - // a common error returned by this is: - // Something went wrong: cannot send request {"type":"ModelManager","request":"ListModels","version":5,"params":...}: connection state 3 is not open - console.error("Something went wrong: ", error); + // a common error logged to the console by this is: + // Error while triggering the connection and polling of models. cannot send request {"type":"ModelManager","request":"ListModels","version":5,"params":...}: connection state 3 is not open + console.error( + "Error while triggering the connection and polling of models.", + error, + ); thunkAPI.dispatch( generalActions.storeConnectionError( "Error while triggering the connection and polling of models.",