Fixes #2463 - Redirect back instead of erroring

This commit is contained in:
James Brooks
2017-05-06 11:01:14 +01:00
parent 08ca427b93
commit 979ea1110c
2 changed files with 10 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ class ScheduleController extends Controller
} catch (ValidationException $e) {
return cachet_redirect('dashboard.schedule.create')
->withInput(Binput::all())
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.schedule.add.failure')))
->withTitle(sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.schedule.edit.failure')))
->withErrors($e->getMessageBag());
}