MDL-79835 behat_core_generator: remove misleading error obfuscation

This commit is contained in:
Tim Hunt
2023-12-06 18:13:50 +00:00
parent caacef2ea2
commit 01515859f2
+1 -7
View File
@@ -470,13 +470,7 @@ class behat_core_generator extends behat_generator_base {
}
}
// Custom exception.
try {
$this->datagenerator->create_module($activityname, $data, $cmoptions);
} catch (coding_exception $e) {
throw new Exception('\'' . $activityname . '\' activity can not be added using this step,' .
' use the step \'I add a "ACTIVITY_OR_RESOURCE_NAME_STRING" to section "SECTION_NUMBER"\' instead');
}
$this->datagenerator->create_module($activityname, $data, $cmoptions);
}
/**