Skip to content

Commit 20da41a

Browse files
committed
Merge pull request #123 from rwifeng/list_fix
Exception package
2 parents 3a5ac07 + 025fdb8 commit 20da41a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Qiniu/Storage/ResumeUploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function upload()
6767
$data = fread($this->inputStream, $blockSize);
6868
if ($data === false) {
6969
fclose($this->inputStream);
70-
throw new Exception("file read failed", 1);
70+
throw new \Exception("file read failed", 1);
7171
}
7272
$crc = \Qiniu\crc32_data($data);
7373
$response = $this->makeBlock($data, $blockSize);

src/Qiniu/Storage/UploadManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function putFile(
8181
) {
8282
$file = fopen($filePath, 'rb');
8383
if ($file === false) {
84-
throw new Exception("file can not open", 1);
84+
throw new \Exception("file can not open", 1);
8585
}
8686
$params = self::trimParams($params);
8787
$stat = fstat($file);
@@ -90,7 +90,7 @@ public function putFile(
9090
$data = fread($file, $size);
9191
fclose($file);
9292
if ($data === false) {
93-
throw new Exception("file can not read", 1);
93+
throw new \Exception("file can not read", 1);
9494
}
9595
return FormUploader::put(
9696
$upToken,

0 commit comments

Comments
 (0)