557600
大家看这样一句
380 try {
381 // Execute the callback if one was provided
382 if(typeof callback == 'function'){callback(err, document, info.connection);}
383 } catch(err) {console.error('发生异常',err.stack);
384 self._emitAcrossAllDbInstances(self, null, "error", err, self, true, true);
385 }
在382行会抛出异常,这个异常已被catch到了,console也打印出来了,但是进程却退出了,我在程序中写了process的'uncaughtException'事件监听,发现代码没有运行到这个监听事件中。