Merge pull request #10 from Microsoft/personal/gcorvera/error-fixes
Fix to the error page
This commit is contained in:
Коммит
ad26701415
|
@ -29,10 +29,17 @@
|
||||||
if (commonError != null)
|
if (commonError != null)
|
||||||
{
|
{
|
||||||
ErrorModel deserializeObject = JsonConvert.DeserializeObject<ErrorModel>(commonError.Response.Content);
|
ErrorModel deserializeObject = JsonConvert.DeserializeObject<ErrorModel>(commonError.Response.Content);
|
||||||
<p>@deserializeObject.Error.Message</p>
|
if (deserializeObject != null)
|
||||||
if (deserializeObject.Error.Details != 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>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче