Skip to content

Commit

Permalink
fix: Change console error message
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-cucu committed Jan 18, 2024
1 parent 48053bf commit 7c546d1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/store/app/thunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Check warning on line 84 in src/store/app/thunks.ts

View check run for this annotation

Codecov / codecov/patch

src/store/app/thunks.ts#L84

Added line #L84 was not covered by tests
"Error while triggering the connection and polling of models.",
error,
);
thunkAPI.dispatch(

Check warning on line 88 in src/store/app/thunks.ts

View check run for this annotation

Codecov / codecov/patch

src/store/app/thunks.ts#L88

Added line #L88 was not covered by tests
generalActions.storeConnectionError(
"Error while triggering the connection and polling of models.",
Expand Down

0 comments on commit 7c546d1

Please sign in to comment.