From bbc2d076aa3a85b7d12ec50c950cba97b15740b6 Mon Sep 17 00:00:00 2001 From: RoySegall Date: Wed, 15 Apr 2015 08:13:55 +0200 Subject: [PATCH] Throwing exception when we the gherkin component is missing. --- behat.module | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/behat.module b/behat.module index bf98f11..9f64ffb 100644 --- a/behat.module +++ b/behat.module @@ -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';