1
0
mirror of https://github.com/fspc/workstand.git synced 2025-03-03 04:23:24 -05:00

Throw error.

This commit is contained in:
Drew Larson 2017-01-03 19:41:54 -06:00
parent 47f3454905
commit e1287a25b0

View File

@ -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) {