Suppress overly verbose error output to users

This commit is contained in:
Dane Everitt 2016-08-16 19:20:58 -04:00
parent 445b2f20eb
commit 4d31004cf4
4 changed files with 28 additions and 10 deletions

View file

@ -286,7 +286,7 @@ class ServersController extends Controller
Alert::success('A rebuild has been queued successfully. It will run the next time this server is booted.')->flash();
} catch (\GuzzleHttp\Exception\TransferException $ex) {
Log::warning($ex);
Alert::danger('An error occured while attempting to toggle a rebuild: ' . $ex->getMessage())->flash();
Alert::danger('An error occured while attempting to toggle a rebuild.')->flash();
}
return redirect()->route('admin.servers.view', [