mirror of
https://github.com/fspc/workstand.git
synced 2025-03-03 04:23:24 -05:00
Throw error.
This commit is contained in:
parent
47f3454905
commit
e1287a25b0
@ -98,6 +98,7 @@ export default class SignIn extends React.Component {
|
|||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
return response.json();
|
return response.json();
|
||||||
}
|
}
|
||||||
|
throw new Error('Bad response from server');
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
if (data.results.length > 0) {
|
if (data.results.length > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user