mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT composer.json missing notice
This commit is contained in:
parent
175b41683e
commit
9ce21338a3
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user