summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-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");
}
}