Skip to content

Commit

Permalink
Escl: Add logging for mapped errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Apr 7, 2024
1 parent 1236351 commit 8543621
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8543621

Please sign in to comment.