From acb22cbc8a46b160ff297f2ce19c86cfc6c3c7c5 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 1 Mar 2021 02:04:21 +0300 Subject: example: minor changes --- example/example.php | 8 ++++++-- 1 file 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 -- cgit v1.2.3