Return real Asset error (#7054)

This commit is contained in:
Yorick Terweijden 2019-12-06 20:07:13 +01:00 committed by snipe
parent 6ad1f51673
commit 2a6a381bc7

View file

@ -357,8 +357,7 @@ class AssetsController extends Controller
->with('success', trans('admin/hardware/message.update.success'));
}
return redirect()->back()->withInput()->withErrors()->with('error', trans('admin/hardware/message.does_not_exist'));
return redirect()->back()->withInput()->withErrors($asset->getErrors());
}
/**