From d367ea057f44ca19a8f8f85e8b1104b0a8594e13 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Thu, 4 Feb 2021 10:59:11 +0300 Subject: [PATCH] Cli source-code download remote error log --- .../Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs index 0462920fbb..4d4a8726a8 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs +++ b/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; } }