From e563ce8ccabcedd8e5e8a3b4e19f267afddcf347 Mon Sep 17 00:00:00 2001 From: Matthias Fey Date: Sun, 6 Dec 2015 18:54:45 +0100 Subject: [PATCH] readme typos --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 47c1287..16bd286 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ I never liked the mongoose/mongo error messages caused by mongoose validation or { username: { type: 'required', - message: 'is required'', + message: 'is required', value: undefined }, email: { @@ -51,7 +51,7 @@ app.use(i18nMongooseError.handler(function(err, req, res, next) { ## Options -By default, the plugin will prefix the error messages in your locales files with 'error.': +By default, the plugin will prefix the error messages in your locale files with `'error.': ``` "error.required": "is required", @@ -70,9 +70,9 @@ var i18nMongooseError = new (require('mongoose-i18n-error'))({ ## Custom validators -In your custom mongoose validators your error message should now apply to the key in your locales files. +In your custom mongoose validators your error message should now apply to the key in your locales. -``` +```js var Schema = new mongoose.Schema({ name: { type: String,