node-js-libs / curlrequest

A cURL wrapper
MIT License
184 stars 44 forks source link

Fix the last commit #37

Closed OsamaAbbas closed 8 years ago

OsamaAbbas commented 8 years ago

Hi there,

Ahem! In the last pull request (Which was merged already) I was trying to enhance the error messages in case of failure due to (require or require_not) options. However, there is a little mistake in getting the failed string (actually it gets the next string in the array, or undefined).

It is fixed in this commit. I double tested it. And I'm sorry for the previous mistake.

chriso commented 8 years ago

I pushed a fix in 3699993f175170baa69c5c6c316c1f4979b8401d (0.5.6)