From 8543621317bd4c884566b75408db1d3c1e772822 Mon Sep 17 00:00:00 2001 From: Ben Olden-Cooligan Date: Sun, 7 Apr 2024 16:24:57 -0700 Subject: [PATCH] Escl: Add logging for mapped errors --- NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs b/NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs index 9ac12b73b3..37463abf9f 100644 --- a/NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs +++ b/NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs @@ -145,6 +145,7 @@ public async Task GetDevices(ScanOptions options, CancellationToken cancelToken, catch (HttpRequestException ex) when (ex.InnerException is TaskCanceledException or SocketException) { // A connection timeout manifests as TaskCanceledException + _logger.LogError(ex, "Error connecting to ESCL device"); throw new DeviceCommunicationException(); } catch (TaskCanceledException)