Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Better handling of syncronous exceptions #83

Closed
wants to merge 1 commit into from

2 participants

@ForbesLindesay

This forces all errors thrown by consolidate.js to be asynchronous and passed to the callback properly. This simplifies the API usage since it means that:

  1. Errors are always guaranteed to be observable (unlike when fromStringRenderer is used in the current implementation).
  2. You only have to handle errors in one place because you know they will always be passed to the callback.

We also ensure that we only call the callback once. By wrapping error handling up in a helper method, the code is also a little bit cleaner.

@tj
Owner
tj commented

hmm the diff is crazy, needs a rebase i think

@ForbesLindesay

Hmm, yes, I've resubmitted with a better diff. Most of the libraries have been changed though, so the diff is pretty huge (but it's not 'dump everything and start again')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 6, 2013
  1. @ForbesLindesay
Something went wrong with that request. Please try again.