pre 'save' without a callback function fails with unhelpful error message #8087
Labels
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
Milestone
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Throws an error from the kareem library. Error does not refer to the pre save line of code.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Error message should be descriptive providing the line of code of the pre save line
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node v10.16.0
mongoose@5.6.9
MongoDB v3.4.18
Complete Error Message Below:
The text was updated successfully, but these errors were encountered: