mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add Sentry to catch exceptions.
This commit is contained in:
@@ -43,6 +43,7 @@ using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.CommonTypes.Structs;
|
||||
using Aaru.Helpers;
|
||||
using Aaru.Logging;
|
||||
using Sentry;
|
||||
using Marshal = Aaru.Helpers.Marshal;
|
||||
|
||||
namespace Aaru.Images;
|
||||
@@ -212,8 +213,9 @@ public class Nintendo64 : IByteAddressableImage
|
||||
{
|
||||
encoding = Encoding.GetEncoding("shift_jis");
|
||||
}
|
||||
catch
|
||||
catch(Exception ex)
|
||||
{
|
||||
SentrySdk.CaptureException(ex);
|
||||
encoding = Encoding.ASCII;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.CommonTypes.Structs;
|
||||
using Aaru.Helpers;
|
||||
using Aaru.Logging;
|
||||
using Sentry;
|
||||
using Marshal = Aaru.Helpers.Marshal;
|
||||
|
||||
namespace Aaru.Images;
|
||||
@@ -231,8 +232,9 @@ public class SegaMegaDrive : IByteAddressableImage
|
||||
{
|
||||
encoding = Encoding.GetEncoding("shift_jis");
|
||||
}
|
||||
catch
|
||||
catch(Exception ex)
|
||||
{
|
||||
SentrySdk.CaptureException(ex);
|
||||
encoding = Encoding.ASCII;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.CommonTypes.Structs;
|
||||
using Aaru.Helpers;
|
||||
using Aaru.Logging;
|
||||
using Sentry;
|
||||
using Marshal = Aaru.Helpers.Marshal;
|
||||
|
||||
namespace Aaru.Images;
|
||||
@@ -162,8 +163,9 @@ public class SuperNintendo : IByteAddressableImage
|
||||
{
|
||||
encoding = Encoding.GetEncoding("shift_jis");
|
||||
}
|
||||
catch(Exception)
|
||||
catch(Exception ex)
|
||||
{
|
||||
SentrySdk.CaptureException(ex);
|
||||
encoding = Encoding.ASCII;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user