From 1f5a3f36b928b6abe21e498a1ee22c1d03efe28c Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 3 May 2015 11:27:08 +0200 Subject: c/tools: Make non-cli request error public Signed-off-by: Florian Pritz --- application/controllers/tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application') diff --git a/application/controllers/tools.php b/application/controllers/tools.php index ca79ba004..d1d5ba39b 100644 --- a/application/controllers/tools.php +++ b/application/controllers/tools.php @@ -15,7 +15,7 @@ class Tools extends MY_Controller { $this->load->model('mfile'); if (!$this->input->is_cli_request()) { - throw new \exceptions\ApiException("api/cli-only", "This can only be called via CLI"); + throw new \exceptions\PublicApiException("api/cli-only", "This can only be called via CLI"); } } -- cgit v1.2.3-24-g4f1b