From eed7c7171bde452ca3eb2951a617c9ef2365b7d0 Mon Sep 17 00:00:00 2001 From: Craig Bassett Date: Tue, 3 Nov 2020 20:57:38 -0600 Subject: [PATCH] fix: catch a greater subset of errors to throw to the user --- src/store/socket/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/socket/actions.ts b/src/store/socket/actions.ts index 6896c45855..9d9717c1af 100644 --- a/src/store/socket/actions.ts +++ b/src/store/socket/actions.ts @@ -49,7 +49,7 @@ export const actions: ActionTree = { * Another case might be during a klippy disconnect. */ async onSocketError ({ commit }, payload) { - if (payload.code === 400) { + if (payload.code >= 400 && payload.code < 500) { // clear any associated waits. if (payload.__request__ && payload.__request__.wait) { commit('removeWait', payload.__request__.wait)