Fixes an error the error page had that caused a different problem when parsing the error message from the response from khv
This commit is contained in:
Родитель
4b5f84fce3
Коммит
f0b9dbbeb5
|
@ -29,10 +29,17 @@
|
|||
if (commonError != null)
|
||||
{
|
||||
ErrorModel deserializeObject = JsonConvert.DeserializeObject<ErrorModel>(commonError.Response.Content);
|
||||
<p>@deserializeObject.Error.Message</p>
|
||||
if (deserializeObject.Error.Details != null)
|
||||
if (deserializeObject != null)
|
||||
{
|
||||
<p>@deserializeObject.Error.Details</p>
|
||||
<p>@deserializeObject.Error.Message</p>
|
||||
if (deserializeObject.Error.Details != null)
|
||||
{
|
||||
<p>@deserializeObject.Error.Details</p>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>There was an error parsing the response. Response phrase was: @commonError.Response.ReasonPhrase</p>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче