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); } }