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 {