Skip to content

Commit 9c5975d

Browse files
committed
Simpler message, as this appears only for the modules themselves.
1 parent 196f691 commit 9c5975d

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/Module

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Module/Dir.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getDir($moduleName, $type = '')
4848
// An empty $type means it's getting the directory of the module itself.
4949
if (empty($type) && !isset($path)) {
5050
// Note: do not throw \LogicException, as it would break backwards-compatibility.
51-
throw new \InvalidArgumentException("Component '$moduleName' of type '$type' is not correctly registered.");
51+
throw new \InvalidArgumentException("Module '$moduleName' is not correctly registered.");
5252
}
5353

5454
if ($type) {

0 commit comments

Comments
 (0)