eugef / node-mocks-http

Mock 'http' objects for testing Express routing functions
Other
753 stars 133 forks source link

Throw an error object instead of a string #173

Closed rhodgkins closed 5 years ago

rhodgkins commented 5 years ago

Seems more of a correct approach to throw an error object, in case you attach extra properties to the error later on - as I found you cannot do if the error is a string!

eugef commented 5 years ago

@rhodgkins thanks for fixing it!

rhodgkins commented 5 years ago

@eugef no probs! Any chance for a new release?

eugef commented 5 years ago

I will release within few days