We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e343a0f commit 8f16d9bCopy full SHA for 8f16d9b
ModAssistant/Pages/Mods.xaml.cs
@@ -164,7 +164,16 @@ public async Task GetAllMods()
164
{
165
var resp = await HttpClient.GetAsync(Utils.Constants.BeatModsAPIUrl + "mod");
166
var body = await resp.Content.ReadAsStringAsync();
167
- AllModsList = JsonSerializer.Deserialize<Mod[]>(body);
+
168
+ try
169
+ {
170
+ AllModsList = JsonSerializer.Deserialize<Mod[]>(body);
171
+ }
172
+ catch (Exception e)
173
174
+ System.Windows.MessageBox.Show($"{FindResource("Mods:LoadFailed")}.\n\n" + e);
175
+ AllModsList = new Mod[] { };
176
177
}
178
179
private void CheckInstallDir(string directory)
0 commit comments