mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Return a more descriptive error when module class is not found
This commit is contained in:
parent
3a4fb82666
commit
32621dd34e
3 changed files with 10 additions and 0 deletions
|
|
@ -402,6 +402,10 @@ class ModuleHandler extends Handler
|
|||
{
|
||||
$oModule = $class_fullname::getInstance();
|
||||
}
|
||||
else
|
||||
{
|
||||
return self::_createErrorMessage(-1, 'msg_module_class_not_found', 404);
|
||||
}
|
||||
}
|
||||
elseif($type == "view" && $this->is_mobile && Context::isInstalled())
|
||||
{
|
||||
|
|
@ -514,6 +518,10 @@ class ModuleHandler extends Handler
|
|||
{
|
||||
$oModule = $class_fullname::getInstance();
|
||||
}
|
||||
else
|
||||
{
|
||||
return self::_createErrorMessage(-1, 'msg_module_class_not_found', 404);
|
||||
}
|
||||
}
|
||||
elseif($type == "view" && $this->is_mobile)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue