Skip to content

Commit

Permalink
fix: review comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Jan 31, 2024
1 parent 3079506 commit 274d704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v0/util/facebookUtils/networkHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ const errorResponseHandler = (destResponse) => {
const { status, errorMessage, stats: errorStatTags } = getStatus(error);
if (
isDefinedAndNotNull(errorStatTags) &&
errorStatTags?.[TAG_NAMES.ERROR_TYPE] === 'accessTokenExpired'
errorStatTags?.[TAG_NAMES.ERROR_TYPE] === ERROR_TYPES.AUTH
) {
throw new ConfigurationAuthError(`${errorMessage}`);
throw new ConfigurationAuthError(errorMessage);
}
throw new NetworkError(
`${errorMessage || error.message || 'Unknown failure during response transformation'}`,
Expand Down

0 comments on commit 274d704

Please sign in to comment.