mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-28 23:52:36 +01:00
Fix catching the wrong exception type
This commit is contained in:
@@ -102,7 +102,7 @@ namespace Tgstation.Server.Client
|
||||
//check if json serializes to an error message
|
||||
errorMessage = JsonConvert.DeserializeObject<ErrorMessage>(json, serializerSettings);
|
||||
}
|
||||
catch (JsonSerializationException) { }
|
||||
catch (JsonException) { }
|
||||
|
||||
switch (response.StatusCode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user