Errors are all translated. Closes #364.

This commit is contained in:
James Brooks
2015-01-13 11:55:26 +00:00
parent 108a1cbc03
commit e4ee12c170
11 changed files with 38 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ class DashAPIController extends Controller
public function postUpdateComponent(Component $component)
{
if (!$component->update(Binput::except(['_token']))) {
throw new Exception('Failed to update the component.');
throw new Exception(trans('dashboard.components.edit.failure'));
}
return $component;