You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In errorController.js , while doing shallow copy of err object it might happen that it does not revert back name and message field so you can add these lines also.
let error = {...err};
error.name = err.name;
error.message = err.message;
complete-node-bootcamp/4-natours/after-section-11/models/reviewModel.js
Line 91 in d39cbf7
The text was updated successfully, but these errors were encountered: