Skip to content

Commit 8efc098

Browse files
committed
Fix
1 parent d21bc7e commit 8efc098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Qiniu/IO/IOClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ private static NameValueCollection getFormData(string upToken, string key, PutEx
4848
/// <param name="extra"></param>
4949
public PutRet PutFile(string upToken, string key, string localFile, PutExtra extra)
5050
{
51-
if (System.IO.File.Exists (localFile)) {
52-
new Exception (string.Format ("{0} does not exist", localFile));
51+
if (!System.IO.File.Exists (localFile)) {
52+
throw new Exception (string.Format ("{0} does not exist", localFile));
5353
}
5454
PutRet ret;
5555

0 commit comments

Comments
 (0)