diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-03-01 02:04:21 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-03-01 02:04:21 +0300 |
commit | acb22cbc8a46b160ff297f2ce19c86cfc6c3c7c5 (patch) | |
tree | 217b96b5a9d67574ca4fad091e8d7c75541a797c | |
parent | 1c351bdd19bf5f9a24bf2f3fa9f4cb02b2ea7be6 (diff) |
example: minor changes
-rw-r--r-- | example/example.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/example/example.php b/example/example.php index ca9e68c..8251705 100644 --- a/example/example.php +++ b/example/example.php @@ -2,14 +2,18 @@ require_once 'vendor/autoload.php'; +ini_set('display_errors', 1); +error_reporting(E_ALL); + try { // connecting to jobd $client = new jobd\Client(jobd\Client::MASTER_PORT); // asking master to ask workers responsible for server1 to poll new jobs - $client->poke(['server1']); + $resp = $client->poke(['server1']); + var_dump($resp); } catch (Exception $e) { - die($e->getMessage()); + die("error: ".$e->getMessage()); } // closing connection |