mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-06-13 22:02:18 +03:00
Log error when reading Discord settings fails
This commit is contained in:
parent
18f5823f2a
commit
ae8a34f938
@ -40,7 +40,9 @@ static class DiscordAppSettings {
|
|||||||
public static async Task<bool?> AreDevToolsEnabled() {
|
public static async Task<bool?> AreDevToolsEnabled() {
|
||||||
try {
|
try {
|
||||||
return AreDevToolsEnabled(await ReadSettingsJson());
|
return AreDevToolsEnabled(await ReadSettingsJson());
|
||||||
} catch (Exception) {
|
} catch (Exception e) {
|
||||||
|
Log.Error("Cannot read settings file.");
|
||||||
|
Log.Error(e);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user