From a3cdb3b62ff78cb71976b6c795c40d9a39ddd3b9 Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Thu, 21 Nov 2024 11:11:11 -0600 Subject: [PATCH] Fix error message format in BulkAssetsController Previously, the error message was set as a string, which led to an inconsistency in how errors were handled. This change updates the error message to be an array, ensuring it aligns with the expected format. --- app/Http/Controllers/Assets/BulkAssetsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Assets/BulkAssetsController.php b/app/Http/Controllers/Assets/BulkAssetsController.php index b3446b1b7b..75deaa8c92 100644 --- a/app/Http/Controllers/Assets/BulkAssetsController.php +++ b/app/Http/Controllers/Assets/BulkAssetsController.php @@ -249,7 +249,7 @@ class BulkAssetsController extends Controller $custom_field_problem = true; } catch (\Exception $e) { report($e); - $errors[$key] = trans('general.something_went_wrong'); + $errors[$key] = [trans('general.something_went_wrong')]; } } if (!empty($errors)) {