fix-promises

You are resolving the promise when it fails. This is a bug
```js
value.then(resolvePromise, rejectPromise)
```