Log error when reading Discord settings fails

This commit is contained in:
chylex committed 2023-10-29 06:42:45 +01:00
1 parent 18f5823f2a
commit ae8a34f938
1 file changed
+3 -1
+3 -1
View File
@@ -40,7 +40,9 @@ static class DiscordAppSettings {
public static async Task<bool?> AreDevToolsEnabled() {
try {
return AreDevToolsEnabled(await ReadSettingsJson());
} catch (Exception) {
} catch (Exception e) {
Log.Error("Cannot read settings file.");
Log.Error(e);
return null;
}
}