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:
parent
71e5959f4e
commit
03e8745dc3
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user