Skip to content

Commit

Permalink
Fix innerexception not being set correctly robinrodricks#1247
Browse files Browse the repository at this point in the history
  • Loading branch information
FanDjango committed Apr 18, 2023
1 parent 8a7aa0a commit 2d02523
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions FluentFTP/Exceptions/FtpInvalidCertificateException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public class FtpInvalidCertificateException : FtpException {
/// Default constructor
/// </summary>
public FtpInvalidCertificateException(Exception innerException)
: base("FTPS security could not be established on the server. The certificate was not accepted.") {
InnerException = innerException;
: base("FTPS security could not be established on the server. The certificate was not accepted.", innerException) {
}

/// <summary>
Expand Down

0 comments on commit 2d02523

Please sign in to comment.