8000 Throw Exception on failed remote media download · tintucraju/codebird-php@9c9a520 · GitHub
[go: up one dir, main page]

Skip to conte 10000 nt

Commit 9c9a520

Browse files
committed
Throw Exception on failed remote media download
Fix jublo#152
1 parent 300973d commit 9c9a520

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ codebird-php - changelog
33

44
3.1.0 (not yet released)
55
+ #143 Add support for proxy types
6+
+ #152 Throw Exception on failed remote media download
67

78
3.0.0 (2016-01-01)
89
+ Add unit testing suite

src/codebird.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,6 +1826,7 @@ protected function _fetchRemoteFile($url)
18261826
if ($result !== false) {
18271827
return $result;
18281828
}
1829+
throw new \Exception('Downloading a remote media file failed.');
18291830
return false;
18301831
}
18311832
// no cURL

0 commit comments

Comments
 (0)
0