diff --git a/README.md b/README.md index 2246794..a83ed79 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Build Status](https://travis-ci.org/benfluleck/HelloBooks.png)](https://travis-ci.org/benfluleck/HelloBooks.svg?branch=staging) [![Code Climate](https://codeclimate.com/github/benfluleck/HelloBooks/badges/gpa.svg)](https://codeclimate.com/github/benfluleck/HelloBooks/) -[![Test Coverage](https://codeclimate.com/github/benfluleck/HelloBooks/badges/coverage.svg)](https://codeclimate.com/github/codeclimate/benfluleck/HelloBooks) +[![Coverage Status](https://coveralls.io/repos/github/benfluleck/HelloBooks/badge.svg?branch=staging)](https://coveralls.io/github/benfluleck/HelloBooks?branch=staging) # HelloBooks diff --git a/server/src/controllers/user.js b/server/src/controllers/user.js index ae9164d..145df83 100644 --- a/server/src/controllers/user.js +++ b/server/src/controllers/user.js @@ -138,7 +138,8 @@ export default { token: token.token, username: req.body.username }); - }); + }) + .catch(error => res.status(500).send(error.message)); } else { res .status(400)