Commit 41e16515 authored by Alex Matchneer's avatar Alex Matchneer Committed by machty

Minor clarification in README on routes re: propagation

The original explanation's 'even though' is misleading, giving you the impression that if the first `.then` included an error handler, the second `.then`'s error handler would have fired, which only the case if the first error handler threw an error or returned RSVP.reject.

Perhaps we'll want another paragraph explaining how to "rethrow" a reject, but for now this should do.
parent 8c80ba5e
......@@ -114,8 +114,8 @@ Errors also propagate:
getJSON("/posts.json").then(function(posts) {
}).then(null, function(error) {
// even though no error callback was passed to the
// first `.then`, the error propagates
// since no rejection handler was passed to the
// first `.then`, the error propagates.
});
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment