Skip to content

Commit

Permalink
refactor: Change error message
Browse files Browse the repository at this point in the history
  • Loading branch information
teralad committed Mar 23, 2020
1 parent 2d00f67 commit 1b6feec
Show file tree
Hide file tree
Showing 3 changed files with 6,167 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/redis.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let RedisService = class RedisService {
name = this.redisClient.defaultKey;
}
if (!this.redisClient.clients.has(name)) {
throw new redis_client_provider_1.RedisClientError(`client ${name} is not exists`);
throw new redis_client_provider_1.RedisClientError(`client ${name} does not exist`);
}
return this.redisClient.clients.get(name);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/redis.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class RedisService {
name = this.redisClient.defaultKey;
}
if (!this.redisClient.clients.has(name)) {
throw new RedisClientError(`client ${name} is not exists`);
throw new RedisClientError(`client ${name} does not exist`);
}
return this.redisClient.clients.get(name);
}
Expand Down
Loading

0 comments on commit 1b6feec

Please sign in to comment.