mirror of
https://github.com/JuniorDark/RustyHearts-Launcher.git
synced 2026-05-07 05:21:44 -04:00
Add more error handling
This commit is contained in:
parent
7917f223e1
commit
71f7609dc5
4 changed files with 32 additions and 11 deletions
|
|
@ -17,7 +17,7 @@ namespace RHLauncher
|
|||
try
|
||||
{
|
||||
using HttpClient client = new();
|
||||
HttpResponseMessage response = await client.GetAsync(LauncherVersionUrl);
|
||||
using HttpResponseMessage response = await client.GetAsync(LauncherVersionUrl);
|
||||
response.EnsureSuccessStatusCode();
|
||||
string json = await response.Content.ReadAsStringAsync();
|
||||
dynamic result = JsonConvert.DeserializeObject(json);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue