无法使用NodeJ在nodemailer中发送完整的错误堆栈

时间:2017-11-13 11:43:11

标签: node.js nodemailer

我的程序会在运行代码出现任何错误时触发电子邮件。但我的问题是它只发送错误的第一行。

 TypeError: Cannot read property 'text' of undefined

而不是完整的错误堆栈: -

TypeError: Cannot read property 'text' of undefined
    at Object.handle (D:\QlikIntermediate\routes\index.js:93:19)
    at next_layer (D:\QlikIntermediate\node_modules\express\lib\router\route.js:
103:13)
    at Route.dispatch (D:\QlikIntermediate\node_modules\express\lib\router\route
.js:107:5)
    at D:\QlikIntermediate\node_modules\express\lib\router\index.js:213:24
    at Function.proto.process_params (D:\QlikIntermediate\node_modules\express\l
ib\router\index.js:286:12)
    at next (D:\QlikIntermediate\node_modules\express\lib\router\index.js:182:38
)
    at next (D:\QlikIntermediate\node_modules\express\lib\router\index.js:182:38
)

如果没有完整的错误堆栈,我很难跟踪错误。我在nodemailer的html标签中尝试了不同的样式,但它只发送主错误行。将不胜感激。

0 个答案:

没有答案
相关问题