1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

throw javascript errors on >= 400 HTTP errors

This commit is contained in:
Tim Daubenschütz 2015-09-29 15:38:06 +02:00
parent 550eb2dc0b
commit 40095f7fbf
2 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@ class EditionListStore {
} }
onUpdateEditionList({pieceId, editionListOfPiece, page, pageSize, orderBy, orderAsc, count, filterBy}) { onUpdateEditionList({pieceId, editionListOfPiece, page, pageSize, orderBy, orderAsc, count, filterBy}) {
/* /*
Basically there are two modes an edition list can be updated. Basically there are two modes an edition list can be updated.

View File

@ -21,7 +21,7 @@ class Requests {
} }
unpackResponse(response) { unpackResponse(response) {
if (response.status >= 500) { if (response.status >= 400) {
throw new Error(response.status + ' - ' + response.statusText + ' - on URL:' + response.url); throw new Error(response.status + ' - ' + response.statusText + ' - on URL:' + response.url);
} }