Skip to content

Commit 71c0de5

Browse files
authored
Fix Raven.captureException example in docs
`Raven.captureException` cannot be passed as a function reference; it needs to be bound to `Raven` (either via `bind` or by being wrapped in a function).
1 parent 65faa0a commit 71c0de5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ And then use `Raven.captureException` as the error handler like this:
4848

4949
```javascript
5050
const store = createStore(reducer, applyMiddleware(
51-
reduxCatch(Raven.captureException)
51+
reduxCatch(function (error) {
52+
Raven.captureException(error);
53+
});
5254
));
5355
```
5456

0 commit comments

Comments
 (0)