Browse Source

Update missing header arg error message

header-formatting
Luke Childs 8 years ago
parent
commit
e8098e00a1
  1. 2
      src/index.js

2
src/index.js

@ -13,7 +13,7 @@ expired.in = (headers, date = new Date()) => differenceInMilliseconds(expired.on
expired.on = headers => {
// Check we have headers
if (!headers) {
throw new Error('Headers argument is required');
throw new Error('Headers argument is missing');
}
// Parse headers if we got a raw string

Loading…
Cancel
Save