File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ function JavascriptRedisParser (options) {
248
248
}
249
249
for ( var key in options ) {
250
250
if ( typeof options [ key ] !== optionTypes [ key ] ) {
251
- throw new TypeError ( 'The options argument contains unkown properties or properties of a wrong type' )
251
+ throw new TypeError ( 'The options argument contains the property "' + key + '" that is either unkown or of a wrong type')
252
252
}
253
253
}
254
254
if ( options . name === 'hiredis' ) {
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ describe('parsers', function () {
41
41
returnError : true
42
42
} )
43
43
} , function ( err ) {
44
- assert . strictEqual ( err . message , 'The options argument contains unkown properties or properties of a wrong type' )
44
+ assert . strictEqual ( err . message , 'The options argument contains the property "returnError" that is either unkown or of a wrong type' )
45
45
assert ( err instanceof TypeError )
46
46
return true
47
47
} )
@@ -55,7 +55,7 @@ describe('parsers', function () {
55
55
bla : undefined
56
56
} )
57
57
} , function ( err ) {
58
- assert . strictEqual ( err . message , 'The options argument contains unkown properties or properties of a wrong type' )
58
+ assert . strictEqual ( err . message , 'The options argument contains the property "bla" that is either unkown or of a wrong type' )
59
59
assert ( err instanceof TypeError )
60
60
return true
61
61
} )
You can’t perform that action at this time.
0 commit comments