Issue 2695

Introduces localisation for API errors
This commit is contained in:
Dominic Guhl
2019-10-26 15:07:54 +02:00
parent 18310641aa
commit b4d565400e
32 changed files with 511 additions and 24 deletions

View File

@@ -165,7 +165,7 @@ class BudgetLimitController extends Controller
$data = $request->getAll();
$budget = $this->repository->findNull($data['budget_id']);
if (null === $budget) {
throw new FireflyException('Unknown budget.');
throw new FireflyException(trans('error_unknown_budget'));
}
$data['budget'] = $budget;
$budgetLimit = $this->blRepository->storeBudgetLimit($data);