Skip to content

Commit d474db2

Browse files
committed
rethrow existing exceptions
1 parent 074cff1 commit d474db2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sectigo-scm-caplugin/SectigoCAPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public async Task<EnrollmentResult> Enroll(string csr, string subject, Dictionar
265265
catch (HttpRequestException httpEx)
266266
{
267267
_logger.LogError($"Enrollment Failed due to a HTTP error: {httpEx.Message}");
268-
throw new Exception(httpEx.Message);
268+
throw;
269269
}
270270
catch (Exception ex)
271271
{
@@ -277,7 +277,7 @@ public async Task<EnrollmentResult> Enroll(string csr, string subject, Dictionar
277277
retError = ex.InnerException.Message;
278278
}
279279

280-
throw new Exception(retError);
280+
throw;
281281
}
282282
}
283283

0 commit comments

Comments
 (0)