Merge pull request #3924 from keram79/patch-1

Fix error handling in Server.php
pull/3927/head
Andras Iklody 2018-12-08 09:41:06 -05:00 committed by GitHub
commit c733857fef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3415,7 +3415,7 @@ class Server extends AppModel
try {
$response = $HttpSocket->get($uri, '', $request);
} catch (Exception $e) {
$error = $e->getMessage;
$error = $e->getMessage();
}
if (!isset($response) || $response->code != '200') {
$this->Log = ClassRegistry::init('Log');