Fix error handling in Server.php

according to http://php.net/manual/de/exception.getmessage.php , the parenthesis are required
pull/3924/head
keram79 2018-12-06 19:42:44 +01:00 committed by GitHub
parent 083beae502
commit e34e62efe8
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');