From a04bcb5971872e7dbc079de9337875e73f7642dc Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 30 Apr 2019 20:00:42 +0800 Subject: Throw exception in cos service. --- Timeline/Services/QCloudCosService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Timeline/Services/QCloudCosService.cs') diff --git a/Timeline/Services/QCloudCosService.cs b/Timeline/Services/QCloudCosService.cs index 078dd37b..b37631e5 100644 --- a/Timeline/Services/QCloudCosService.cs +++ b/Timeline/Services/QCloudCosService.cs @@ -234,7 +234,7 @@ namespace Timeline.Services catch (Exception e) { _logger.LogError(e, "An error occured when test a cos object existence."); - return false; + throw; } } @@ -297,6 +297,7 @@ namespace Timeline.Services catch (Exception e) { _logger.LogError(e, "An error occured when test a cos object existence."); + throw; } } -- cgit v1.2.3