fix: throw change
Some checks failed
Build Docker / build (push) Has been cancelled
Some checks failed
Build Docker / build (push) Has been cancelled
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user