Throw error.

This commit is contained in:
Drew Larson
2017-01-03 19:41:54 -06:00
parent 47f3454905
commit e1287a25b0
@@ -98,6 +98,7 @@ export default class SignIn extends React.Component {
if (response.status === 200) {
return response.json();
}
throw new Error('Bad response from server');
})
.then((data) => {
if (data.results.length > 0) {