From 01c9ebfa9665d0c00d94c070a71e5005e6423f58 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Wed, 7 Sep 2022 16:59:46 +0800 Subject: [PATCH] CLI work when abp.io is offline --- .../Volo/Abp/Cli/ProjectBuilding/AbpIoSourceCodeStore.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 10c65d95e5..6f013272c3 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 @@ -221,7 +221,9 @@ public class AbpIoSourceCodeStore : ISourceCodeStore, ITransientDependency } catch (Exception ex) { - throw new Exception($"Error occured while getting the versions from {url} : {ex.Message}"); + Logger.LogWarning($"Error occured while getting the versions from {url} : {ex.Message}"); + // The remote service is currently unavailable, try to work offline. + return true; } }