Selaa lähdekoodia

Bug 1504: Wrong message when setting TransferOptions.OverwriteMode property to an invalid value

https://winscp.net/tracker/1504

Source commit: ad16a25e175ce048a18cef82165cead9767e6e48
Martin Prikryl 8 vuotta sitten
vanhempi
sitoutus
304502f299
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      dotnet/TransferOptions.cs

+ 1 - 1
dotnet/TransferOptions.cs

@@ -103,7 +103,7 @@ namespace WinSCP
                     switches.Add(Session.FormatSwitch("append"));
                     break;
                 default:
-                    throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "{0} is not supported", TransferMode));
+                    throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "{0} is not supported", OverwriteMode));
             }
 
             return string.Join(" ", switches.ToArray());