fix(userServices): only crash client on 500

This commit is contained in:
Tyler Renelle 2014-01-31 10:25:35 -07:00
parent 2a2024262b
commit 2cd7959d2e

View file

@ -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';