From 4232dd9a03efc3ed1c415a8b864dfe5bd7785430 Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Mon, 30 Aug 2021 12:43:44 +0100 Subject: [PATCH] fix(*): Add missing throw to ensure exceptions get passed up the stack --- FileRepository/Repositories/SftpRepository.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FileRepository/Repositories/SftpRepository.cs b/FileRepository/Repositories/SftpRepository.cs index f3808b8..d6a7c17 100644 --- a/FileRepository/Repositories/SftpRepository.cs +++ b/FileRepository/Repositories/SftpRepository.cs @@ -74,9 +74,10 @@ namespace FileRepository.Repositories //_logger.LogInformation($"Finished downloading file [{localFilePath}] from [{remoteFilePath}]"); } - catch (Exception exception) + catch (Exception ex) { - //_logger.LogError(exception, $"Failed in downloading file [{localFilePath}] from [{remoteFilePath}]"); + //_logger.LogError(ex, $"Failed in downloading file [{localFilePath}] from [{remoteFilePath}]"); + throw; } finally {