Merge pull request #15 from stof/patch-1

Fix exposing the error
This commit is contained in:
Jeff Avallone 2015-09-02 16:59:52 -04:00
commit d3ffd3a615

View File

@ -119,9 +119,9 @@ function tick() {
// //
// - __error__ - Error/exception object to be re-thrown to the browser. // - __error__ - Error/exception object to be re-thrown to the browser.
function exposeError(error) { function exposeError(error) {
tick().then(() => { setTimeout(() => {
throw error; throw error;
}); }, 0);
} }
export default { export default {