This commit is contained in:
2025-12-31 00:19:31 +08:00
parent 4af906048b
commit 19a1cb6169
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ class GiiCommand extends Command
$output->writeln(json_encode($array, JSON_UNESCAPED_UNICODE)); $output->writeln(json_encode($array, JSON_UNESCAPED_UNICODE));
return 0; return 0;
} catch (\Throwable $throwable) { } catch (\Throwable $throwable) {
$output->writeln(throwable($throwable)); $output->writeln(throwable($throwable));
return 1; return 1;
} }
} }
+1 -1
View File
@@ -64,7 +64,7 @@ namespace {$namespace};
$import = $this->getImports($path['path'] . '/' . $managerName . 'Controller.php', $class); $import = $this->getImports($path['path'] . '/' . $managerName . 'Controller.php', $class);
} catch (\Throwable $Exception) { } catch (\Throwable $Exception) {
error($Exception); \Kiri::getLogger()->json_log($Exception);
exit(); exit();
} }
} else { } else {
+1 -1
View File
@@ -68,7 +68,7 @@ namespace ' . $namespace . ';
$html .= $imports . PHP_EOL; $html .= $imports . PHP_EOL;
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
error($e); \Kiri::getLogger()->json_log($e);
} }
} }