Skip to content

Commit

Permalink
Throwing exception when we the gherkin component is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
RoySegall committed Apr 15, 2015
1 parent 75fdac9 commit bbc2d07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions behat.module
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
* Including the autoloader generated by composer.
*/

if (!file_exists('src/Behat/autoload.php')) {
throw new Exception(t('Oops... The gherkin component for the Behat module is missing. You can get it with composer.'));
}

require_once 'src/Behat/autoload.php';

0 comments on commit bbc2d07

Please sign in to comment.