From 2cd7959d2e8e7e0f34235676fc48c59ba613ac8f Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Fri, 31 Jan 2014 10:25:35 -0700 Subject: [PATCH] fix(userServices): only crash client on 500 --- script/userServices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/userServices.js b/script/userServices.js index 44abd33324..f235390d5c 100644 --- a/script/userServices.js +++ b/script/userServices.js @@ -108,7 +108,7 @@ angular.module('userServices', []). }) .error(function (data, status, headers, config) { // In the case of errors, discard the corrupt queue - if (status >= 400) { + if (status >= 500) { data = data.needRefresh ? "The site has been updated and the page needs to refresh. The last action has not been recorded, please refresh and try again." : data ? (data.err ? data.err : data) : 'Something went wrong, please refresh your browser or upgrade the mobile app';