Page MenuHomePhorge

D5292.1775392090.diff
No OneTemporary

Authored By
Unknown
Size
815 B
Referenced Files
None
Subscribers
None

D5292.1775392090.diff

diff --git a/plugins/kolab/Kolab/Client.php b/plugins/kolab/Kolab/Client.php
--- a/plugins/kolab/Kolab/Client.php
+++ b/plugins/kolab/Kolab/Client.php
@@ -107,8 +107,8 @@
];
$response = $client->request($method, $path, $request);
-
- if ($response->getStatusCode() == 200) {
+ $code = $response->getStatusCode();
+ if ($code == 200) {
$json = json_decode((string) $response->getBody());
if ($cache_key) {
@@ -116,6 +116,8 @@
}
return $json;
+ } else {
+ $rcube->raise_error("Request to $base_uri/$path failed [$code]: " . (string) $response->getBody());
}
} catch (\Exception $e) {
$rcube->raise_error($e, true, false);

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 5, 12:28 PM (19 h, 47 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18833441
Default Alt Text
D5292.1775392090.diff (815 B)

Event Timeline