fix(router): rethrow exceptions

Closes #2391
This commit is contained in:
Brian Ford
2015-06-08 18:04:13 -07:00
parent 4ae7df27d2
commit 5782f063f1
2 changed files with 33 additions and 2 deletions

View File

@ -128,7 +128,10 @@ export class Router {
ObservableWrapper.callNext(this._subject, matchedInstruction.accumulatedUrl);
});
PromiseWrapper.catchError(result, (_) => this._finishNavigating());
PromiseWrapper.catchError(result, (err) => {
this._finishNavigating();
return err;
});
return result;
});