Using the doc's debug configuration, I get
Unmonitored error:
.../node_modules/hapi/lib/request.js:203
console.error(data.stack);
^
TypeError: Cannot read property 'stack' of undefined
at internals.Request.log (.../node_modules/hapi/lib/request.js:203:27)
at internals.Request._log (.../node_modules/hapi/lib/request.js:159:10)
at.../node_modules/hapi/lib/response/index.js:208:21
at Object._onImmediate (.../node_modules/hapi/lib/response/generic.js:216:13)
at processImmediate [as _immediateCallback] (timers.js:317:15)
I'm running tests with Lab on Hapi master.
The previous data.stack are all undefined and the data object looks like:
{
msec: 1,
assign: 'email_check',
mode: 'parallel',
error:
{
isBoom: true,
response: { code: 403, payload: [Object], headers: {} },
message: 'Email already in the database'
}
}
I don't know where the error with an undefined data could come from as it looks like it appears between two tests. I'd need to investigate a little more, but already having undefined data.stack seemed weird.
Using the doc's debug configuration, I get
I'm running tests with Lab on Hapi master.
The previous
data.stackare all undefined and the data object looks like:I don't know where the error with an undefined
datacould come from as it looks like it appears between two tests. I'd need to investigate a little more, but already having undefineddata.stackseemed weird.