mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-25 23:25:51 +00:00
fix(userServices): only crash client on 500
This commit is contained in:
parent
2a2024262b
commit
2cd7959d2e
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue