Skip to content

Commit

Permalink
Merge pull request #123 from rwifeng/list_fix
Browse files Browse the repository at this point in the history
Exception package
  • Loading branch information
longbai committed Apr 18, 2015
2 parents 3a5ac07 + 025fdb8 commit 20da41a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Qiniu/Storage/ResumeUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function upload()
$data = fread($this->inputStream, $blockSize);
if ($data === false) {
fclose($this->inputStream);
throw new Exception("file read failed", 1);
throw new \Exception("file read failed", 1);
}
$crc = \Qiniu\crc32_data($data);
$response = $this->makeBlock($data, $blockSize);
Expand Down
4 changes: 2 additions & 2 deletions src/Qiniu/Storage/UploadManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function putFile(
) {
$file = fopen($filePath, 'rb');
if ($file === false) {
throw new Exception("file can not open", 1);
throw new \Exception("file can not open", 1);
}
$params = self::trimParams($params);
$stat = fstat($file);
Expand All @@ -90,7 +90,7 @@ public function putFile(
$data = fread($file, $size);
fclose($file);
if ($data === false) {
throw new Exception("file can not read", 1);
throw new \Exception("file can not read", 1);
}
return FormUploader::put(
$upToken,
Expand Down

0 comments on commit 20da41a

Please sign in to comment.