Unverified Commit 746f8d6d authored by honfika's avatar honfika Committed by GitHub

Merge pull request #724 from justcoding121/master

beta
parents 6149ed65 bc85dd9c
......@@ -39,7 +39,7 @@ namespace Titanium.Web.Proxy.Helpers
{
// is this really possible?
httpStatus = await ReadLineAsync(cancellationToken) ??
throw new ServerConnectionException("Server connection was closed.");
throw new ServerConnectionException("Server connection was closed. Response status is empty.");
}
Response.ParseResponseLine(httpStatus, out var version, out int statusCode, out string description);
......@@ -47,7 +47,7 @@ namespace Titanium.Web.Proxy.Helpers
}
catch (Exception e) when (!(e is ServerConnectionException))
{
throw new ServerConnectionException("Server connection was closed.");
throw new ServerConnectionException("Server connection was closed. Exception while reading the response status.", e);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment