lzszone

Results comments of lzszone

@vkarpov15 Hi, I'm using mongoose v5 +, and my case is that I want to have an error handle middleware that deals with the `Cast Error`. But I can't find...

@vkarpov15 I'm trying to handle the `schema.findById` method globally, And yes, I've read about that... And what is really confusing me is that the `cast` error should happen before querying...

@vkarpov15 Thank you for the explanation, it's very clear :D

@maxs15 I added some business code above @vkarpov15 's, If you just want to ignore the `CastError`, I think the following would work. ```js // After mongoose connected mongoose.plugin(function(schema, options)...

@maxs15 I haven't tested the code above, my business code will add some property in the error and pass the error to the `next`, so you are right, thank you...

I got the same issue when I was trying to do a tex demo, my solution is to add readOnly prop in the Editor component, I just ignore this property,...

seems that i got same problem, do u have any idea about this?

@vmarchaud thank u, there are errors in the logs, i was really confuse about these.... ``` at exports._errnoException (util.js:1023:11) PM2 | at ChildProcess.target._send (internal/child_process.js:667:20) PM2 | at ChildProcess.target.send (internal/child_process.js:551:19) PM2...

Thank you for answering, and it works...:D @Hakerh400 Could you please spend a little more time to explain what's the difference between those two? I also try to use a...