Skip to content

Commit

Permalink
Update env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
pankaj443 committed Jul 17, 2024
1 parent b40be13 commit d22cc32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ export async function* withPage(percy, url, callback, retry, args) {
}
} catch (error) {
attempt++;
let shouldRetry = process.env.ENABLE_RETRY === 'true';
if (!shouldRetry || attempt === retries) {
let retryEnabled = process.env.PERCY_RETRY_STORY_ON_ERROR || 'true';
if (!(retryEnabled === 'true') || attempt === retries) {
throw error;
}
log.warn(`Retrying Story: ${args.snapshotName}`);
Expand Down

0 comments on commit d22cc32

Please sign in to comment.