|
|
@@ -100,7 +100,7 @@ namespace BulkPrinting
|
|
100
|
100
|
}
|
|
101
|
101
|
catch (WebException ex)
|
|
102
|
102
|
{
|
|
103
|
|
- if (ex != null && ex.Response != null)
|
|
|
103
|
+ if (ex.Response != null)
|
|
104
|
104
|
{
|
|
105
|
105
|
var response = ex.Response;
|
|
106
|
106
|
var stream = response.GetResponseStream();
|
|
|
@@ -116,6 +116,10 @@ namespace BulkPrinting
|
|
116
|
116
|
MessageBox.Show("Login Failed. Please try again.", "Login Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
117
|
117
|
}
|
|
118
|
118
|
}
|
|
|
119
|
+ else
|
|
|
120
|
+ {
|
|
|
121
|
+ MessageBox.Show("The server did not return a response to the login request. Please try again later.", "Login Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
|
122
|
+ }
|
|
119
|
123
|
return false;
|
|
120
|
124
|
}
|
|
121
|
125
|
}
|