Skip to content

Commit 9a35969

Browse files
committed
Changing misleading error message
1 parent bc3893b commit 9a35969

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

_src/lib/node_cache.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ module.exports = class NodeCache extends EventEmitter
684684

685685
_ERRORS:
686686
"ENOTFOUND": "Key `__key` not found"
687-
"ECACHEFULL": "Cache max key size exceeded"
687+
"ECACHEFULL": "Cache max keys amount exceeded"
688688
"EKEYTYPE": "The key argument has to be of type `string` or `number`. Found: `__key`"
689689
"EKEYSTYPE": "The keys argument has to be an array."
690690
"ETTLTYPE": "The ttl argument has to be a number."

_src/test/mocha_test.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ describe "`#{pkg.name}@#{pkg.version}` on `node@#{process.version}`", () ->
368368

369369
(() -> localCacheMaxKeys.set(state.key3, state.value3, 0)).should.throw({
370370
name: "ECACHEFULL"
371-
message: "Cache max key size exceeded"
371+
message: "Cache max keys amount exceeded"
372372
})
373373
return
374374

0 commit comments

Comments
 (0)