#313: improve logging in auth states

This commit is contained in:
SleepWalker
2017-03-02 07:58:33 +02:00
parent 09baa2a398
commit e9e04d8336
10 changed files with 30 additions and 9 deletions

View File

@@ -25,7 +25,9 @@ export default class PasswordState extends AbstractState {
login
})
.then(() => context.setState(new CompleteState()))
.catch((err = {}) => err.errors || logger.warn(err));
.catch((err = {}) =>
err.errors || logger.warn('Error logging in', err)
);
}
reject(context) {