Fix catching the wrong exception type

This commit is contained in:
Cyberboss
2018-08-20 11:09:01 -04:00
parent ea5527d091
commit dcb1e7ef0b
+1 -1
View File
@@ -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)
{