Add a warn when login failed to be more explicit

This commit is contained in:
Godzil 2018-10-04 20:07:54 +01:00
parent 27bdf54782
commit 546ba9b45a

View File

@ -148,6 +148,7 @@ function checkIfUserIsAuth(config: IConfig, done: (err: Error) => void): void
if (isAuthenticated === false)
{
const error = $('ul.message, li.error').text();
log.warn('Authentication failed: ' + error);
return done(AuthError('Authentication failed: ' + error));
}
else