mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 17:13:44 -07:00
Making the imgur destination more stable, unfortunately Imgur has issues...
This commit is contained in:
parent
41255df991
commit
b64de88b1e
4 changed files with 65 additions and 32 deletions
|
@ -482,8 +482,9 @@ namespace GreenshotPlugin.Core {
|
|||
}
|
||||
catch (WebException e) {
|
||||
response = (HttpWebResponse) e.Response;
|
||||
HttpStatusCode statusCode = response.StatusCode;
|
||||
HttpStatusCode statusCode = HttpStatusCode.Unused;
|
||||
if (response != null) {
|
||||
statusCode = response.StatusCode;
|
||||
LOG.ErrorFormat("HTTP error {0}", statusCode);
|
||||
string errorContent = GetResponseAsString(response);
|
||||
if (alsoReturnContentOnError)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue