From e1287a25b0f6aeb24931e79b1a0b2d2a8065627a Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Tue, 3 Jan 2017 19:41:54 -0600 Subject: [PATCH] Throw error. --- bikeshop_project/assets/js/components/SignIn.jsx | 1 + 1 file changed, 1 insertion(+) 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) {