Skip to content

Commit

Permalink
Add fs.Stats to type error
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Sep 11, 2014
1 parent b153168 commit c50e3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function etag(entity, options) {
}

if (!isBuffer && typeof entity !== 'string') {
throw new TypeError('argument entity must be string or Buffer')
throw new TypeError('argument entity must be string, Buffer, or fs.Stats')
}

var buf = !isBuffer
Expand Down

0 comments on commit c50e3c3

Please sign in to comment.