Cli: Write only error messages on login command

pull/10496/head
Engincan VESKE 4 years ago
parent 9e925b21fe
commit 837a590859

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