Skip to content

Commit

Permalink
Improved the exception message when getting a crawler before visiting
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed May 1, 2014
1 parent e31089d commit 912e74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Behat/Mink/Driver/BrowserKitDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ private function getCrawler()
$crawler = $this->client->getCrawler();

if (null === $crawler) {
throw new DriverException('Crawler can\'t be initialized. Did you started driver?');
throw new DriverException('Unable to access the response content before visiting a page');
}

return $crawler;
Expand Down

0 comments on commit 912e74d

Please sign in to comment.