Skip to content

Commit 690e8c6

Browse files
committed
fix(cloudfront-signer): update error message
1 parent c5f624a commit 690e8c6

File tree

1 file changed

+1
-1
lines changed
  • packages/cloudfront-signer/src

1 file changed

+1
-1
lines changed

packages/cloudfront-signer/src/sign.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class CloudfrontSignBuilder {
370370
private parseDateWindow(expiration: string | number | Date, start?: string | number | Date): PolicyDates {
371371
const dateLessThan = this.parseDate(expiration);
372372
if (!dateLessThan) {
373-
throw new Error("dateLessThan is invalid. Ensure the date string is compatible with the Date constructor.");
373+
throw new Error("dateLessThan is invalid. Ensure the date value is compatible with the Date constructor.");
374374
}
375375
return {
376376
dateLessThan,

0 commit comments

Comments
 (0)