diff --git a/bikeshop_project/assets/js/components/SignIn.jsx b/bikeshop_project/assets/js/components/SignIn.jsx index 5b64794..69fc7b4 100644 --- a/bikeshop_project/assets/js/components/SignIn.jsx +++ b/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) {