Browse Source

Cli source-code download remote error log

pull/7595/head
Yunus Emre Kalkan 5 years ago
parent
commit
d367ea057f
  1. 6
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs

6
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs

@ -199,11 +199,12 @@ namespace Volo.Abp.Cli.ProjectBuilding
{
var url = $"{CliUrls.WwwAbpIo}api/download/{input.Type}/";
HttpResponseMessage responseMessage = null;
try
{
using (var client = new CliHttpClient(TimeSpan.FromMinutes(10)))
{
HttpResponseMessage responseMessage;
if (input.TemplateSource.IsNullOrWhiteSpace())
{
@ -225,7 +226,8 @@ namespace Volo.Abp.Cli.ProjectBuilding
}
catch (Exception ex)
{
Console.WriteLine("Error occured while downloading source-code from {0} : {1}", url, ex.Message);
Console.WriteLine("Error occured while downloading source-code from {0} : {1}{2}{3}",
url, responseMessage?.ToString(), Environment.NewLine, ex.Message);
throw;
}
}

Loading…
Cancel
Save