From 9b18371e8191dcf864f745ed0aea2882de6d681d Mon Sep 17 00:00:00 2001 From: Benny Ogidan Date: Tue, 17 Oct 2017 23:36:09 +0100 Subject: [PATCH] Coveralls added --- README.md | 2 +- server/src/controllers/user.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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)