Skip to content

Commit

Permalink
Merge pull request andyburke#59 from kreischweide/undetailed-https-ex…
Browse files Browse the repository at this point in the history
…ception

Increased verbosity on SSL authentication exceptions
  • Loading branch information
andyburke committed Jan 4, 2016
2 parents bb0acb5 + 7e1b8b7 commit b0d1473
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,13 @@ private void GetResponse() {
var ssl = ostream as SslStream;
ssl.AuthenticateAsClient (uri.Host);
} catch (Exception e) {
Debug.LogError ("Exception: " + e.Message);
#if !UNITY_EDITOR
Console.WriteLine ("SSL authentication failed.");
Console.WriteLine (e);
#else
Debug.LogError ("SSL authentication failed.");
Debug.LogException(e);
#endif
return;
}
}
Expand Down

0 comments on commit b0d1473

Please sign in to comment.