mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
throw javascript errors on >= 400 HTTP errors
This commit is contained in:
parent
550eb2dc0b
commit
40095f7fbf
@ -13,7 +13,6 @@ class EditionListStore {
|
||||
}
|
||||
|
||||
onUpdateEditionList({pieceId, editionListOfPiece, page, pageSize, orderBy, orderAsc, count, filterBy}) {
|
||||
|
||||
/*
|
||||
Basically there are two modes an edition list can be updated.
|
||||
|
||||
|
@ -21,7 +21,7 @@ class Requests {
|
||||
}
|
||||
|
||||
unpackResponse(response) {
|
||||
if (response.status >= 500) {
|
||||
if (response.status >= 400) {
|
||||
throw new Error(response.status + ' - ' + response.statusText + ' - on URL:' + response.url);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user