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.
This commit is contained in:
spencerrlongg 2024-11-21 11:11:11 -06:00
parent 10126b8362
commit a3cdb3b62f

View file

@ -249,7 +249,7 @@ class BulkAssetsController extends Controller
$custom_field_problem = true; $custom_field_problem = true;
} catch (\Exception $e) { } catch (\Exception $e) {
report($e); report($e);
$errors[$key] = trans('general.something_went_wrong'); $errors[$key] = [trans('general.something_went_wrong')];
} }
} }
if (!empty($errors)) { if (!empty($errors)) {