Skip to content

Commit

Permalink
fix : error
Browse files Browse the repository at this point in the history
  • Loading branch information
R11manish committed Sep 6, 2024
1 parent 2440af7 commit 7e2dddb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/helpers/custom-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,10 @@ export class GTWError extends Error {
}
}

export type AppError = {
Code: string;
Message: string;
Err: any;
};

function captureError(message: any) {
if (message.hasOwnProperty('error')) {
return message.error;
}

return message.error as AppError;
return message.error.message;
}

0 comments on commit 7e2dddb

Please sign in to comment.