Skip to content

Commit

Permalink
fix: filter unhandled errors by message (#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoumitaM authored Jul 23, 2024
1 parent 362891c commit 2f45d00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/analytics-js/src/constants/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const FAILED_REQUEST_ERR_MSG_PREFIX = 'The request failed';
const ERROR_MESSAGES_TO_BE_FILTERED = [FAILED_REQUEST_ERR_MSG_PREFIX];
const UNHANDLEDEXCEPTION_FOR_NON_ERROR_OBJECT = 'unhandledException handler received a non-error';
const ERROR_MESSAGES_TO_BE_FILTERED = [
FAILED_REQUEST_ERR_MSG_PREFIX,
UNHANDLEDEXCEPTION_FOR_NON_ERROR_OBJECT,
];

export { FAILED_REQUEST_ERR_MSG_PREFIX, ERROR_MESSAGES_TO_BE_FILTERED };

0 comments on commit 2f45d00

Please sign in to comment.