Bubble the error to top if we don't handle it in Ember.Route

A proper thing to do when an error is not handled is to bubble it up
rather than using throw (which we were using before this commit).
This commit is contained in:
Piotr Sarnacki 2014-02-12 07:46:56 +01:00
parent 71e5959f4e
commit 03e8745dc3

View File

@ -20,7 +20,7 @@ Ember.Route.reopen
authController.set('redirected', true)
@transitionTo('auth')
else
throw(error)
return true
renderNoOwnedRepos: ->
@render('no_owned_repos', outlet: 'main')