diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.php index 60826ff86f..9788b3d46c 100755 --- a/app/Http/Controllers/AssetsController.php +++ b/app/Http/Controllers/AssetsController.php @@ -417,8 +417,8 @@ class AssetsController extends Controller \Session::flash('success', trans('admin/hardware/message.update.success')); return response()->json(['redirect_url' => route("view/hardware", $assetId)]); } - - return response()->json(['errors' => $asset->getErrors()]); + \Session::flash('errors', $asset->getErrors()); + return response()->json(['errors' => $asset->getErrors()], 500); }