From c34ae9156e4293d6e5fc1cbae1875565a63d8f84 Mon Sep 17 00:00:00 2001 From: Bruno Skvorc Date: Thu, 21 Jul 2016 10:36:14 +0200 Subject: [PATCH] Removed puli, updated discovery, updated Crawl error message --- composer.json | 3 +-- src/Api/Crawl.php | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index b4f7bef..dcfa447 100644 --- a/composer.json +++ b/composer.json @@ -21,8 +21,7 @@ "php": "^5.6|7.*", "php-http/client-implementation": "^1.0", "php-http/client-common": "^1", - "php-http/discovery": "^0.8", - "puli/composer-plugin": "^1.0@beta", + "php-http/discovery": "^1", "php-http/message": "^1.0" }, "require-dev": { diff --git a/src/Api/Crawl.php b/src/Api/Crawl.php index 2bb664e..0590a9e 100644 --- a/src/Api/Crawl.php +++ b/src/Api/Crawl.php @@ -2,7 +2,7 @@ namespace Swader\Diffbot\Api; -use Doctrine\Instantiator\Exception\InvalidArgumentException; +use \InvalidArgumentException; use Swader\Diffbot\Entity\EntityIterator; use Swader\Diffbot\Entity\JobCrawl; use Swader\Diffbot\Exceptions\DiffbotException; @@ -454,7 +454,7 @@ public function call() } elseif (!isset($array['jobs']) && isset($array['response'])) { return $array['response']; } else { - throw new DiffbotException('It appears something went wrong.'); + throw new DiffbotException('It appears something went wrong - no data was returned. Did you use the correct token / job name?'); } }