Skip to content

Commit

Permalink
Exposes the invalidation error
Browse files Browse the repository at this point in the history
  • Loading branch information
xcambar committed Dec 24, 2015
1 parent 3944d33 commit 3ae0879
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/internal-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export default Ember.ObjectProxy.extend(Ember.Evented, {
getOwner(this).lookup(authenticator).restore(restoredContent.authenticated).then((content) => {
this.set('content', restoredContent);
this._setup(authenticator, content).then(resolve, reject);
}, () => {
Ember.Logger.debug(`The authenticator "${authenticator}" rejected to restore the session - invalidating`);
}, (err) => {
Ember.Logger.debug(`The authenticator "${authenticator}" rejected to restore the session - invalidating because: ${err}`);
this.set('content', restoredContent);
this._clear().then(reject, reject);
});
Expand Down Expand Up @@ -167,8 +167,8 @@ export default Ember.ObjectProxy.extend(Ember.Evented, {
getOwner(this).lookup(authenticator).restore(content.authenticated).then((authenticatedContent) => {
this.set('content', content);
this._setup(authenticator, authenticatedContent, true);
}, () => {
Ember.Logger.debug(`The authenticator "${authenticator}" rejected to restore the session - invalidating`);
}, (err) => {
Ember.Logger.debug(`The authenticator "${authenticator}" rejected to restore the session - invalidating because: ${err}`);
this.set('content', content);
this._clear(true);
});
Expand Down

0 comments on commit 3ae0879

Please sign in to comment.