Browse Source

Merge pull request #14844 from abpframework/issue-14601

CLI - Print a user friendly error when the license expires on new project creation
pull/14849/head
Alper Ebiçoğlu 4 years ago
committed by GitHub
parent
commit
c1d01118ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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

@ -261,6 +261,12 @@ public class AbpIoSourceCodeStore : ISourceCodeStore, ITransientDependency
}
catch (Exception ex)
{
if(ex is UserFriendlyException)
{
Logger.LogWarning(ex.Message);
throw;
}
Console.WriteLine("Error occured while downloading source-code from {0} : {1}{2}{3}", url,
responseMessage?.ToString(), Environment.NewLine, ex.Message);
throw;

Loading…
Cancel
Save