|
|
@@ -86,7 +86,16 @@ namespace BulkPrintingAPI.Controllers
|
|
86
|
86
|
|
|
87
|
87
|
if (!batch.ReadyForDownload)
|
|
88
|
88
|
{
|
|
89
|
|
- await Utils.DownloadVouchersAsync(_sftpOptions, _context, _logger, batch);
|
|
|
89
|
+ try
|
|
|
90
|
+ {
|
|
|
91
|
+ await Utils.DownloadVouchersAsync(_sftpOptions, _context, _logger, batch);
|
|
|
92
|
+ }
|
|
|
93
|
+ catch (Exception e)
|
|
|
94
|
+ {
|
|
|
95
|
+ _logger.LogError(string.Format(
|
|
|
96
|
+ "Failed to download vouchers for {0} batchId={1}: {2}",
|
|
|
97
|
+ credentials.ToString(), batch.Id, e.Message));
|
|
|
98
|
+ }
|
|
90
|
99
|
}
|
|
91
|
100
|
|
|
92
|
101
|
return Ok(batch);
|