summaryrefslogtreecommitdiffstats
path: root/application/core
diff options
context:
space:
mode:
Diffstat (limited to 'application/core')
-rw-r--r--application/core/MY_Controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php
index 250c9d95c..f33dedbb3 100644
--- a/application/core/MY_Controller.php
+++ b/application/core/MY_Controller.php
@@ -54,7 +54,7 @@ class MY_Controller extends CI_Controller {
protected function _require_cli_request()
{
if (!is_cli()) {
- throw new \exceptions\PublicApiException("api/cli-only", "This function can only be accessed via the CLI interface");
+ throw new \exceptions\InsufficientPermissionsException("api/cli-only", "This function can only be accessed via the CLI interface");
}
}