Browse Source

Add a warn when login failed to be more explicit

Godzil 5 years ago
parent
commit
546ba9b45a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/my_request.ts

+ 1 - 0
src/my_request.ts

@@ -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