refac: 에러 핸들링 방식 변경, FatalError 대응

This commit is contained in:
2022-05-09 03:39:30 +09:00
parent c5345494b1
commit 80edfefdb1
10 changed files with 24 additions and 14 deletions
+2 -2
View File
@@ -363,7 +363,7 @@ function setGeneralCommand(int $generalID, array $rawTurnList, string $command,
'target'=>'arg'
];
}
catch (\Exception $e){
catch (\Throwable $e){
return [
'result'=>false,
'reason'=>$e->getCode().$e->getMessage(),
@@ -445,7 +445,7 @@ function setNationCommand(int $generalID, array $turnList, string $command, ?arr
'target'=>'arg'
];
}
catch (\Exception $e){
catch (\Throwable $e){
return [
'result'=>false,
'reason'=>$e->getCode().$e->getMessage(),