diff --git a/lib/schematype.js b/lib/schematype.js index 050341d7d06..673f85761c8 100644 --- a/lib/schematype.js +++ b/lib/schematype.js @@ -825,7 +825,7 @@ SchemaType.prototype.get = function(fn) { * From the examples above, you may have noticed that error messages support * basic templating. There are a few other template keywords besides `{PATH}` * and `{VALUE}` too. To find out more, details are available - * [here](#error_messages_MongooseError-messages). + * [here](/docs/api/error.html#Error.prototype.name). * * If Mongoose's built-in error message templating isn't enough, Mongoose * supports setting the `message` property to a function.