npm / fstream

Advanced FS Streaming for Node
ISC License
208 stars 43 forks source link

Move props.path check below class init #55

Closed ZJONSSON closed 7 years ago

ZJONSSON commented 8 years ago

self.error is not available until the prototype is available

Before:

fstream.Writer({})
// TypeError: self.error is not a function

After:

fstream.Writer({})
// Error: Must provide a path
ZJONSSON commented 7 years ago

Wohoo!! Thanks!