Fix logging of chwala communication errors
This commit is contained in:
parent
1a4562ff04
commit
ef640cded1
1 changed files with 6 additions and 6 deletions
|
@ -797,7 +797,7 @@ class kolab_files_engine
|
|||
$quota = $body['result'];
|
||||
}
|
||||
else {
|
||||
throw new Exception($body['reason']);
|
||||
throw new Exception($body['reason'] ?: "Failed to get quota. Status: $status");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
|
@ -1076,7 +1076,7 @@ class kolab_files_engine
|
|||
$files[] = $attach_name;
|
||||
}
|
||||
else {
|
||||
throw new Exception($body['reason']);
|
||||
throw new Exception($body['reason'] ?: "Failed to post file_upload. Status: $status");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
|
@ -1165,7 +1165,7 @@ class kolab_files_engine
|
|||
$file_params = $body['result'];
|
||||
}
|
||||
else {
|
||||
throw new Exception($body['reason']);
|
||||
throw new Exception($body['reason'] ?: "Failed to get file_info. Status: $status");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
|
@ -1321,7 +1321,7 @@ class kolab_files_engine
|
|||
$this->file_data = $body['result'];
|
||||
}
|
||||
else {
|
||||
throw new Exception($body['reason']);
|
||||
throw new Exception($body['reason'] ?: "Failed to get file_info. Status: $status");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
|
@ -1375,7 +1375,7 @@ class kolab_files_engine
|
|||
$mimetypes = $body['result'];
|
||||
}
|
||||
else {
|
||||
throw new Exception($body['reason']);
|
||||
throw new Exception($body['reason'] ?: "Failed to get mimetypes. Status: $status");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
|
@ -1407,7 +1407,7 @@ class kolab_files_engine
|
|||
$sources = $body['result'];
|
||||
}
|
||||
else {
|
||||
throw new Exception($body['reason']);
|
||||
throw new Exception($body['reason'] ?: "Failed to get folder_types. Status: $status");
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue