mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-24 22:35:04 +08:00
502 status
This commit is contained in:
parent
3d2c975a76
commit
de5306370c
1 changed files with 2 additions and 2 deletions
|
@ -37,9 +37,9 @@
|
|||
},
|
||||
cache: false,
|
||||
complete: function (xhr) {
|
||||
// eslint-disable-next-line no-empty
|
||||
if (xhr.status === 200 || xhr.status === 0) { } // That's OK
|
||||
if (xhr.status === 200 || xhr.status === 0) { /* NOOP */ }
|
||||
else if (xhr.status === 403 || xhr.status === 401) RbHighbar.error(xhr.responseText || 'Unauthorized access')
|
||||
else if (xhr.status === 502) RbHighbar.error('Service unavailable')
|
||||
else {
|
||||
var error = xhr.responseText
|
||||
if (rb.env !== 'dev' && error && error.contains('Exception : ')) error = error.split('Exception : ')[1]
|
||||
|
|
Loading…
Reference in a new issue