X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=cis%2FReactOS.CustomRevisionAction%2FFtpClient.cs;h=30e5a5d6951b9b536dbab3cd553cff66764a1a30;hp=4ba09708a166663afe31febfdc077d1da5e9d977;hb=3c8dbc6c23b6443f555125870db21c26530e87f0;hpb=e0c1c5a1dfa88c589133ba7949dd732bb67c0ab5 diff --git a/cis/ReactOS.CustomRevisionAction/FtpClient.cs b/cis/ReactOS.CustomRevisionAction/FtpClient.cs index 4ba09708a16..30e5a5d6951 100644 --- a/cis/ReactOS.CustomRevisionAction/FtpClient.cs +++ b/cis/ReactOS.CustomRevisionAction/FtpClient.cs @@ -730,7 +730,12 @@ namespace ReactOS.CustomRevisionAction this.sendCommand( "CWD " + dirName ); - if ( this.resultCode != 250 ) throw new FtpException(result.Substring(4)); + if ( this.resultCode != 250 ) + { + if (this.resultCode == 550) + throw new FtpException(String.Format("Access denied to {0}", this.remotePath + "/" + dirName)); + throw new FtpException(result.Substring(4)); + } this.sendCommand( "PWD" );