modify plugin name

This commit is contained in:
2022-03-02 18:20:49 +08:00
parent c3e914ecf1
commit 66dc6de141
+1 -2
View File
@@ -111,13 +111,12 @@ class HotReload extends Command
public function errorHandler() public function errorHandler()
{ {
$error = func_get_args(); $error = func_get_args();
$path = ['file' => $error[2], 'line' => $error[3]]; $path = ['file' => $error[2], 'line' => $error[3]];
if ($error[0] === 0) { if ($error[0] === 0) {
$error[0] = 500; $error[0] = 500;
} }
$data = Json::to(500, $error[1], $path); $data = Json::to($error[0], $error[1], $path);
$this->logger->error('error', [$data]); $this->logger->error('error', [$data]);
} }