Add Sentry to catch exceptions.

This commit is contained in:
2025-08-20 18:51:05 +01:00
parent d5ef2c874d
commit c1f4b92548
70 changed files with 1213 additions and 1087 deletions

View File

@@ -36,6 +36,7 @@ using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Interop;
using Aaru.CommonTypes.Structs.Devices.SCSI;
using Aaru.Decoders.SecureDigital;
using Sentry;
namespace Aaru.Devices.Remote;
@@ -113,6 +114,8 @@ public sealed partial class Device : Devices.Device
}
catch(Exception ex)
{
SentrySdk.CaptureException(ex);
if(ex is SocketException sockEx)
errno = (ErrorNumber)(-1 * sockEx.ErrorCode);
else