refac: 에러 핸들링 방식 변경, FatalError 대응
This commit is contained in:
@@ -15,7 +15,7 @@ class APIHelper
|
||||
try {
|
||||
$rawInput = file_get_contents('php://input');
|
||||
$input = Json::decode($rawInput);
|
||||
} catch (\Exception $e) {
|
||||
} catch (\Throwable $e) {
|
||||
Json::dieWithReason($e->getMessage());
|
||||
$input = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user