Skip to content

Commit 745c111

Browse files
committed
Better check for undefined
1 parent 4dcce42 commit 745c111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parsers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports.parseText = function parseText(message, kwargs) {
1111

1212
module.exports.parseError = function parseError(err, kwargs, cb) {
1313
utils.parseStack(err, function(frames) {
14-
if (kwargs.message === undefined) {
14+
if (typeof kwargs.message === 'undefined') {
1515
kwargs.message = err.name + ': ' + (err.message || '<no message>');
1616
}
1717
kwargs['exception'] = [{

0 commit comments

Comments
 (0)