Skip to content

Commit c34ae91

Browse files
committed
Removed puli, updated discovery, updated Crawl error message
1 parent 32f8d9b commit c34ae91

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

composer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"php": "^5.6|7.*",
2222
"php-http/client-implementation": "^1.0",
2323
"php-http/client-common": "^1",
24-
"php-http/discovery": "^0.8",
25-
"puli/composer-plugin": "^1.0@beta",
24+
"php-http/discovery": "^1",
2625
"php-http/message": "^1.0"
2726
},
2827
"require-dev": {

src/Api/Crawl.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Swader\Diffbot\Api;
44

5-
use Doctrine\Instantiator\Exception\InvalidArgumentException;
5+
use \InvalidArgumentException;
66
use Swader\Diffbot\Entity\EntityIterator;
77
use Swader\Diffbot\Entity\JobCrawl;
88
use Swader\Diffbot\Exceptions\DiffbotException;
@@ -454,7 +454,7 @@ public function call()
454454
} elseif (!isset($array['jobs']) && isset($array['response'])) {
455455
return $array['response'];
456456
} else {
457-
throw new DiffbotException('It appears something went wrong.');
457+
throw new DiffbotException('It appears something went wrong - no data was returned. Did you use the correct token / job name?');
458458
}
459459
}
460460

0 commit comments

Comments
 (0)