diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-05-03 11:27:08 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-03 11:27:08 +0200 |
commit | 1f5a3f36b928b6abe21e498a1ee22c1d03efe28c (patch) | |
tree | 105fa211535c93cbfffd6a75509db9c022bf0c30 /application/controllers/tools.php | |
parent | 027297fdad5e625ab47c65fa2297100945d6e833 (diff) |
c/tools: Make non-cli request error public
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/tools.php')
-rw-r--r-- | application/controllers/tools.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } } |