fix: throw change
Some checks failed
Build Docker / build (push) Has been cancelled

This commit is contained in:
2024-10-27 00:36:01 +08:00
parent d76e37a81d
commit fa197cdcef

View File

@@ -24,7 +24,7 @@ class AdminExceptionHandler extends ExceptionHandler
public function handle(Throwable $throwable, ResponseInterface $response): ResponseInterface public function handle(Throwable $throwable, ResponseInterface $response): ResponseInterface
{ {
if ($throwable instanceof AdminException) { if ($throwable instanceof AdminException) {
$result = $this->return->error($throwable->getMessage(),[],$throwable->getCode()); $result = $this->return->error($throwable->getMessage(),$throwable->getCode());
// 阻止异常冒泡 // 阻止异常冒泡
$this->stopPropagation(); $this->stopPropagation();