diff --git a/Bloxstrap/JsonManager.cs b/Bloxstrap/JsonManager.cs index 58a1e25..a713d4f 100644 --- a/Bloxstrap/JsonManager.cs +++ b/Bloxstrap/JsonManager.cs @@ -65,7 +65,7 @@ namespace Bloxstrap { File.WriteAllText(FileLocation, JsonSerializer.Serialize(Prop, new JsonSerializerOptions { WriteIndented = true })); } - catch (IOException ex) + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { App.Logger.WriteLine(LOG_IDENT, "Failed to save"); App.Logger.WriteException(LOG_IDENT, ex);