Skip to content

Commit

Permalink
one more Security remove
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Mar 16, 2021
1 parent 1cb3917 commit 6d04fb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/plugins/cases/public/common/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface KibanaError extends AppError {
};
}

export interface SecurityAppError extends AppError {
export interface CasesAppError extends AppError {
body: {
message: string;
status_code: number;
Expand All @@ -32,8 +32,8 @@ export interface SecurityAppError extends AppError {
export const isKibanaError = (error: unknown): error is KibanaError =>
has('message', error) && has('body.message', error) && has('body.statusCode', error);

export const isSecurityAppError = (error: unknown): error is SecurityAppError =>
export const isCasesAppError = (error: unknown): error is CasesAppError =>
has('message', error) && has('body.message', error) && has('body.status_code', error);

export const isAppError = (error: unknown): error is AppError =>
isKibanaError(error) || isSecurityAppError(error);
isKibanaError(error) || isCasesAppError(error);

0 comments on commit 6d04fb3

Please sign in to comment.