Skip to content

Commit

Permalink
fix(authentication): fix login and logout messages (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriguy authored May 20, 2020
1 parent 99945d4 commit da42a02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/abstract-authenticated-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AbstractAuthenticatedCommand extends Command {
if (!authenticator.getAuthToken()) {
logger.info('Login required.');
await authenticator.tryLogin({});
if (!authenticator.getAuthToken()) this.displayLoginMessageAndQuit();
if (!authenticator.getAuthToken()) this.exit(10);
}

try {
Expand Down
2 changes: 1 addition & 1 deletion src/services/authenticator.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Authenticator() {
if (isLumberLoggedIn) {
logger.info('You cannot be logged out with this command. Please use "lumber logout" command.');
} else {
logger.info(chalk.green('You are unlogged.'));
logger.info(chalk.green('You are logged out.'));
}
}
};
Expand Down

0 comments on commit da42a02

Please sign in to comment.