mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
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:
parent
10126b8362
commit
a3cdb3b62f
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue