Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/error/missingSchema.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/error/missingSchema.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/error/missingSchema.js
-
curl -L -o missingSchema.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/error/missingSchema.js
569 Bytes
| /*! | |
| * Module dependencies. | |
| */ | |
| ; | |
| const MongooseError = require('./mongooseError'); | |
| class MissingSchemaError extends MongooseError { | |
| /** | |
| * MissingSchema Error constructor. | |
| * @param {String} name | |
| * @api private | |
| */ | |
| constructor(name) { | |
| const msg = 'Schema hasn\'t been registered for model "' + name + '".\n' | |
| + 'Use mongoose.model(name, schema)'; | |
| super(msg); | |
| } | |
| } | |
| Object.defineProperty(MissingSchemaError.prototype, 'name', { | |
| value: 'MissingSchemaError' | |
| }); | |
| /*! | |
| * exports | |
| */ | |
| module.exports = MissingSchemaError; | |