summaryrefslogtreecommitdiffstats
path: root/application/controllers/tools.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-05-03 11:27:08 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-03 11:27:08 +0200
commit1f5a3f36b928b6abe21e498a1ee22c1d03efe28c (patch)
tree105fa211535c93cbfffd6a75509db9c022bf0c30 /application/controllers/tools.php
parent027297fdad5e625ab47c65fa2297100945d6e833 (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.php2
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");
}
}