改进Loader类action方法的错误提示

This commit is contained in:
thinkphp
2016-01-15 14:19:02 +08:00
parent 6282ff7cb4
commit df8e3d6d61
2 changed files with 6 additions and 15 deletions

View File

@@ -233,9 +233,6 @@ class App
$action = ACTION_NAME . Config::get('action_suffix');
}
if (!$instance) {
throw new Exception('class [ ' . Loader::parseClass(MODULE_NAME, CONTROLLER_LAYER, CONTROLLER_NAME) . ' ] not exists', 10001);
}
try {
// 操作方法开始监听
$call = [$instance, $action];