Browse Source

Cli: Write only error messages on login command

pull/10496/head
Engincan VESKE 5 years ago
parent
commit
837a590859
  1. 20
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/LoginCommand.cs

20
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/LoginCommand.cs

@ -70,12 +70,20 @@ namespace Volo.Abp.Cli.Commands
}
}
await AuthService.LoginAsync(
commandLineArgs.Target,
password,
organization
);
try
{
await AuthService.LoginAsync(
commandLineArgs.Target,
password,
organization
);
}
catch (Exception ex)
{
Logger.LogError(ex.Message);
return;
}
Logger.LogInformation($"Successfully logged in as '{commandLineArgs.Target}'");
}

Loading…
Cancel
Save