mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
22
node_modules/mongoose/lib/error.js
generated
vendored
22
node_modules/mongoose/lib/error.js
generated
vendored
@@ -6,12 +6,16 @@
|
||||
* @inherits Error https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error
|
||||
*/
|
||||
|
||||
function MongooseError (msg) {
|
||||
function MongooseError(msg) {
|
||||
Error.call(this);
|
||||
this.stack = new Error().stack;
|
||||
if (Error.captureStackTrace) {
|
||||
Error.captureStackTrace(this);
|
||||
} else {
|
||||
this.stack = new Error().stack;
|
||||
}
|
||||
this.message = msg;
|
||||
this.name = 'MongooseError';
|
||||
};
|
||||
}
|
||||
|
||||
/*!
|
||||
* Inherits from Error.
|
||||
@@ -43,9 +47,9 @@ MongooseError.Messages = MongooseError.messages;
|
||||
*/
|
||||
|
||||
MongooseError.CastError = require('./error/cast');
|
||||
MongooseError.ValidationError = require('./error/validation')
|
||||
MongooseError.ValidatorError = require('./error/validator')
|
||||
MongooseError.VersionError =require('./error/version')
|
||||
MongooseError.OverwriteModelError = require('./error/overwriteModel')
|
||||
MongooseError.MissingSchemaError = require('./error/missingSchema')
|
||||
MongooseError.DivergentArrayError = require('./error/divergentArray')
|
||||
MongooseError.ValidationError = require('./error/validation');
|
||||
MongooseError.ValidatorError = require('./error/validator');
|
||||
MongooseError.VersionError = require('./error/version');
|
||||
MongooseError.OverwriteModelError = require('./error/overwriteModel');
|
||||
MongooseError.MissingSchemaError = require('./error/missingSchema');
|
||||
MongooseError.DivergentArrayError = require('./error/divergentArray');
|
||||
|
||||
Reference in New Issue
Block a user