mongoose-error-formatter
v1.0.4
Published
Format mongoose message
Downloads
20
Maintainers
Readme
mongoose-error-formatter
Format common mongoose errors
Installation
npm install mongoose-error-formatter
Usage
const formatError = require("mongoose-error-formatter");
/**Parse mongoose error */
const formattedMessage = formatError(error)
console.log(formattedMessage)