ENHANCEMENT composer.json missing notice

This commit is contained in:
zanderwar 2018-02-13 09:03:01 +10:00
parent 175b41683e
commit 9ce21338a3

View File

@ -103,7 +103,7 @@ class ModuleResourceLoader implements TemplateGlobalProvider
$resource = $matches['resource'];
$moduleObj = ModuleLoader::getModule($module);
if (!$moduleObj) {
throw new InvalidArgumentException("Can't find module '$module'");
throw new InvalidArgumentException("Can't find module '$module', the composer.json file may be missing from the modules installation directory");
}
$resourceObj = $moduleObj->getResource($resource);
if (!$resourceObj->exists()) {