Merge pull request #7861 from zanderwar/pulls/enhancements/composerjson-check

ENHANCEMENT composer.json missing notice
This commit is contained in:
Chris Joe 2018-02-13 13:48:12 +13:00 committed by GitHub
commit d13ab11940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ class ModuleResourceLoader implements TemplateGlobalProvider
$resource = $matches['resource']; $resource = $matches['resource'];
$moduleObj = ModuleLoader::getModule($module); $moduleObj = ModuleLoader::getModule($module);
if (!$moduleObj) { 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); $resourceObj = $moduleObj->getResource($resource);
if (!$resourceObj->exists()) { if (!$resourceObj->exists()) {