Log error when reading Discord settings fails

This commit is contained in:
chylex 2023-10-29 06:29:44 +01:00
parent 18f5823f2a
commit ae8a34f938
No known key found for this signature in database
GPG Key ID: 4DE42C8F19A80548

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;
}
}