mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 03:14:20 +02:00
Merge branch 'MDL-79835' of https://github.com/timhunt/moodle
This commit is contained in:
commit
7a8e9f660d
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user