diff --git a/library/think/App.php b/library/think/App.php index 4feae3fc..b5dc5963 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -293,7 +293,7 @@ class App $data = $method->invokeArgs($instance, [$action, '']); APP_DEBUG && Log::record('[ RUN ] ' . $method->getFileName(), 'info'); } else { - throw new Exception('method [ ' . (new \ReflectionClass($instance))->getName() . '->' . $action . ' ] not exists ', 10002); + throw new HttpException(404,'method [ ' . (new \ReflectionClass($instance))->getName() . '->' . $action . ' ] not exists '); } } return $data;