Skip to content

Commit eed7c71

Browse files
committed
fix: catch a greater subset of errors to throw to the user
1 parent 8290ac8 commit eed7c71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/store/socket/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const actions: ActionTree<SocketState, RootState> = {
4949
* Another case might be during a klippy disconnect.
5050
*/
5151
async onSocketError ({ commit }, payload) {
52-
if (payload.code === 400) {
52+
if (payload.code >= 400 && payload.code < 500) {
5353
// clear any associated waits.
5454
if (payload.__request__ && payload.__request__.wait) {
5555
commit('removeWait', payload.__request__.wait)

0 commit comments

Comments
 (0)