Skip to content

Commit

Permalink
Don't show error message on 404s for Download All w/ Patches
Browse files Browse the repository at this point in the history
  • Loading branch information
jdperos committed Apr 18, 2021
1 parent 07124d1 commit b281436
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NPS/Update.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ public async Task<Item> DownloadUpdateNoAsk()
catch( WebException error )
{
MessageBox.Show( "Unknown error" );
var response = ( error.Response as HttpWebResponse );
if( response != null && response.StatusCode == HttpStatusCode.NotFound ) { }
else MessageBox.Show( "Unknown error" );
Console.WriteLine( error );

this.Close();
}
catch( Exception err )
Expand Down

0 comments on commit b281436

Please sign in to comment.