diff --git a/README.md b/README.md index df82708..d967cb8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # feathers-nedb +[![Greenkeeper badge](https://badges.greenkeeper.io/feathersjs/feathers-nedb.svg)](https://greenkeeper.io/) + [![Build Status](https://travis-ci.org/feathersjs/feathers-nedb.png?branch=master)](https://travis-ci.org/feathersjs/feathers-nedb) [![Code Climate](https://codeclimate.com/github/feathersjs/feathers-nedb/badges/gpa.svg)](https://codeclimate.com/github/feathersjs/feathers-nedb) [![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-nedb/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-nedb/coverage) diff --git a/package.json b/package.json index 9c5468d..be476fd 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,6 @@ "mocha": "^3.0.1", "nedb": "^1.5.1", "rimraf": "^2.5.4", - "semistandard": "^9.1.0" + "semistandard": "^10.0.0" } } diff --git a/src/index.js b/src/index.js index 66033ad..0117d35 100644 --- a/src/index.js +++ b/src/index.js @@ -165,7 +165,7 @@ class Service { update (id, data, params) { if (Array.isArray(data) || id === null) { - return Promise.reject('Not replacing multiple records. Did you mean `patch`?'); + return Promise.reject(new errors.BadRequest('Not replacing multiple records. Did you mean `patch`?')); } const { query, options } = multiOptions(id, this.id, params);