Between the correctly logged errors, we also get a ton of exceptions in loggly, that say:
msg[0] is undefined
After a short look into the code, I think that this is the part where the error comes from.
The condition before only checks, if msg.stack is defined.
If, for whatever reason, msg.stack is defined but msg.message is not, I guess it'll lead to the error above.
Coverage remained the same at 84.663% when pulling b5192e9495a4e93fe3fd02377bc2889aa5ccff41 on Fkscorpion:fix_undefined_msg into 6a9540dad43542c272dba412fbc1de8af07b2358 on ajbrown:develop.
Between the correctly logged errors, we also get a ton of exceptions in loggly, that say:
After a short look into the code, I think that this is the part where the error comes from.
The condition before only checks, if msg.stack is defined. If, for whatever reason, msg.stack is defined but msg.message is not, I guess it'll lead to the error above.