Skip to content

Commit 9a1888c

Browse files
RI-7203 throw HttException errors immediately (#4714)
1 parent a212e04 commit 9a1888c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

redisinsight/api/src/utils/catch-redis-errors.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ export const catchRedisConnectionError = (
116116
export const catchAclError = (error: ReplyError): HttpException => {
117117
// todo: Move to other place after refactoring
118118
if (
119-
error instanceof EncryptionServiceErrorException ||
120-
error instanceof NotFoundException ||
121-
error instanceof ConflictException ||
122-
error instanceof ServiceUnavailableException ||
123-
error instanceof RedisConnectionFailedException
119+
error instanceof HttpException
124120
) {
125121
throw error;
126122
}

0 commit comments

Comments
 (0)