Skip to content

Commit

Permalink
Fix try-catch not catching all JsonException
Browse files Browse the repository at this point in the history
  • Loading branch information
X9VoiD committed Jul 25, 2023
1 parent 6032af7 commit 77e2d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenTabletDriver.Desktop/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void propertyWatch(object? _, PropertyChangedEventArgs p)
{
serializer.Populate(jr, settings);
}
catch (JsonReaderException e)
catch (JsonException e)
{
Log.Write("Settings", $"Recovery ended. Reason: {e.Message}", LogLevel.Debug);
}
Expand Down

0 comments on commit 77e2d74

Please sign in to comment.