Browse Source

Throw error.

feature/python-error-tracking
Drew Larson 8 years ago
parent
commit
e1287a25b0
  1. 1
      bikeshop_project/assets/js/components/SignIn.jsx

1
bikeshop_project/assets/js/components/SignIn.jsx

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

Loading…
Cancel
Save