catch again

main
Paul Schneider 9 years ago
parent 088f2587ca
commit 4e82b6eea0
1 changed files with 9 additions and 4 deletions

@ -86,6 +86,8 @@ namespace Yavsc.Helpers
{
JsonValue jsonDoc = null;
try
{
using (Stream streamQuery = request.GetRequestStream())
{
using (StreamWriter writer = new StreamWriter(streamQuery))
@ -102,14 +104,17 @@ namespace Yavsc.Helpers
}
response.Close();
}
try
{
}
catch (WebException ex)
{
// TODO err logging
Debug.Print($"Web request failed: {request.ToString()}\n" + ex.ToString());
}
catch (Exception ex)
{
Debug.Print($"Web request failed: {request.ToString()}\n" + ex.ToString());
}
return jsonDoc;
}
}

Loading…