We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ebe063 commit 4d22a8eCopy full SHA for 4d22a8e
Plugins/Imgur.php
@@ -84,6 +84,12 @@ protected function doTransload()
84
$this->throwException('%s: Image format not supported, or image is corrupt.', __METHOD__);
85
}
86
87
+ if (isset($result['data']['error'])) {
88
+ $this->throwException('%s: %s (%s).',
89
+ __METHOD__, $result['data']['error']['message'], $result['data']['error']['type']
90
+ );
91
+ }
92
+
93
return 'http://i.imgur.com/' . $result['data']['hash'] . $this->getExtensionFormImage($this->url);
94
95
0 commit comments