Skip to content

Commit 1a02237

Browse files
committed
warn don't error on expired test
1 parent 4a2e8f0 commit 1a02237

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ab-testing/config/scripts/validation/validExpiration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ export function allExpirationsValid(tests: ABTest[]): boolean {
66
const now = new Date();
77

88
if (expires < now) {
9-
throw new Error(
9+
console.warn(
1010
`${
1111
test.name
12-
} has an expiration date in the past: ${expires.toISOString()}, has it expired? If it doesn't belong to you or your team, you can set the status to OFF for now.`,
12+
} has an expiration date in the past: ${expires.toISOString()}, has it expired?`,
1313
);
1414
}
1515
});

0 commit comments

Comments
 (0)