From c7cb8bc6a07c452df9623f25b9a31f26d346f31c Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Mon, 8 Apr 2024 19:16:37 +0900 Subject: [PATCH] =?UTF-8?q?ParamException=E3=83=8F=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=83=AB=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Web/WebController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Web/WebController.php b/app/Http/Controllers/Web/WebController.php index 441d430..a18baf3 100644 --- a/app/Http/Controllers/Web/WebController.php +++ b/app/Http/Controllers/Web/WebController.php @@ -215,7 +215,7 @@ abstract class WebController extends BaseController throw $e; } catch (ParamException $e) { $this->transaction->rollBack(); - throw $this->validateErrorResponse([$e->target => $e->getMessage()]); + return $this->validateErrorResponse([$e->target => $e->getMessage()]); } catch (Exception $e) { $this->transaction->rollBack(); logs()->error([