mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Stop gracefully handling findAll 403s in the adapter
This commit is contained in:
@@ -24,10 +24,9 @@ export default RESTAdapter.extend({
|
||||
return this._super(...arguments).catch(error => {
|
||||
const errorCodes = codesForError(error);
|
||||
|
||||
const isNotAuthorized = errorCodes.includes('403');
|
||||
const isNotImplemented = errorCodes.includes('501');
|
||||
|
||||
if (isNotAuthorized || isNotImplemented) {
|
||||
if (isNotImplemented) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user