Fix front and backend views with new service variable setups

This commit is contained in:
Dane Everitt
2017-03-12 19:34:06 -04:00
parent 66e94dd7c0
commit fcadee7e67
14 changed files with 104 additions and 93 deletions

View File

@@ -493,6 +493,8 @@ class ServersController extends Controller
$repo->updateStartup($id, $request->except('_token'), true);
Alert::success('Startup variables were successfully modified and assigned for this server.')->flash();
} catch (DisplayValidationException $ex) {
return redirect()->route('admin.servers.view.startup', $id)->withErrors(json_decode($ex->getMessage()));
} catch (DisplayException $ex) {
Alert::danger($ex->getMessage())->flash();
} catch (TransferException $ex) {