Skip to content

Commit

Permalink
Improved error message about missing Codeception module
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLandauer committed May 16, 2024
1 parent 2939161 commit e4ed457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Lib/ModuleContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function create(string $moduleName, bool $active = true): ?object
if (!class_exists($moduleClass)) {
if (isset(self::$packages[$moduleName])) {
$package = self::$packages[$moduleName];
throw new ConfigurationException("Module {$moduleName} is not installed.\nUse Composer to install corresponding package:\n\ncomposer require {$package} --dev");
throw new ConfigurationException("Codeception's module {$moduleName} not found. Install it with:\n\ncomposer require {$package} --dev");
}
throw new ConfigurationException("Module {$moduleName} could not be found and loaded");
}
Expand Down

0 comments on commit e4ed457

Please sign in to comment.