瀏覽代碼

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

https://winscp.net/tracker/1504

Source commit: ad16a25e175ce048a18cef82165cead9767e6e48
Martin Prikryl 8 年之前
父節點
當前提交
304502f299
共有 1 個文件被更改,包括 1 次插入1 次删除
  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());