This commit is contained in:
thinkphp
2016-05-29 23:12:48 +08:00
parent d122bad9b6
commit 34731dd519

View File

@@ -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;