mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Return real Asset error (#7054)
This commit is contained in:
parent
6ad1f51673
commit
2a6a381bc7
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue