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?'); } }