The API documentation encourages the developers to pass `Error` objects to the `reject` function.

I think you are right in fixing this but I reckon you could go one extra mile further :-]

```javascript
var reasonForFailure = new Error('something bad happened');
```