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:
Galo (Gabriel) Corvera 2017-05-18 16:43:16 -07:00
Родитель 4b5f84fce3
Коммит f0b9dbbeb5
1 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

@ -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>
}
}