diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-04-27 09:41:13 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-05-20 10:15:45 +0300 |
commit | 541b7dfad8ce3c5393c114e7a0219279245ee3ad (patch) | |
tree | 3e5fcddb7a2737214a3674eccd2a2d77c98a1a22 /src | |
parent | 28a9f80317dfd68ea07a33b6e00d6f57cf8b29b4 (diff) |
Handle 403 errors the same as not found
There is no reason to retry since 403 error is most likely not temporarily,
so the editor connection can be closed whenever this happens.
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/services/PollingBackend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/PollingBackend.js b/src/services/PollingBackend.js index 88e94d264..555dd509d 100644 --- a/src/services/PollingBackend.js +++ b/src/services/PollingBackend.js @@ -157,7 +157,7 @@ class PollingBackend { outsideChange: e.response.data.outsideChange, }) } else if (e.response.status === 403) { - this._authority.emit('error', ERROR_TYPE.CONNECTION_FAILED, {}) + this._authority.emit('error', ERROR_TYPE.SOURCE_NOT_FOUND, {}) } else if (e.response.status === 404) { this._authority.emit('error', ERROR_TYPE.SOURCE_NOT_FOUND, {}) } else if (e.response.status === 503) { |