From e2a754b76764faa6e12a56398995fe58e0ecae59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 18 Apr 2023 23:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GiiCommand.php | 2 +- GiiController.php | 2 +- GiiModel.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GiiCommand.php b/GiiCommand.php index 99f2495..1534799 100644 --- a/GiiCommand.php +++ b/GiiCommand.php @@ -70,7 +70,7 @@ class GiiCommand extends Command } } } catch (\Throwable $throwable) { - $output->writeln($throwable->getMessage()); + $output->writeln(throwable($throwable)); } finally { return 1; } diff --git a/GiiController.php b/GiiController.php index a04b11b..a76f003 100644 --- a/GiiController.php +++ b/GiiController.php @@ -63,7 +63,7 @@ namespace {$namespace}; $import = $this->getImports($path['path'] . '/' . $managerName . 'Controller.php', $class); } catch (\Throwable $Exception) { - logger()->addError($Exception, 'throwable'); + error($Exception); exit(); } } else { diff --git a/GiiModel.php b/GiiModel.php index 3b620ab..094527a 100644 --- a/GiiModel.php +++ b/GiiModel.php @@ -66,7 +66,7 @@ namespace ' . $namespace . '; $html .= $imports . PHP_EOL; } } catch (\Throwable $e) { - logger()->addError($e, 'throwable'); + error($e); } }