Skip to content

Commit 1c83e9c

Browse files
fix error handling
1 parent b209cf0 commit 1c83e9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

redisinsight/api/src/modules/rdi/exceptions/rdi-pipiline.error.handler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ export const wrapRdiPipelineError = (error: AxiosError<any>, message?: string):
1919
return new RdiPipelineUnauthorizedException(message, errorOptions);
2020
case 422:
2121
return new RdiPipelineValidationException(message, errorOptions);
22-
default:
22+
case 404:
2323
return new RdiPipelineNotFoundException(message, errorOptions);
24+
default:
25+
return new RdiPipelineInternalServerErrorException(message);
2426
}
2527
}
2628

0 commit comments

Comments
 (0)