Skip to content

Commit

Permalink
Removed puli, updated discovery, updated Crawl error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Swader committed Jul 21, 2016
1 parent 32f8d9b commit c34ae91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/Api/Crawl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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?');
}
}

Expand Down

0 comments on commit c34ae91

Please sign in to comment.